Helping you solve those tough coding problems!
Learn some great web development and web design tips and techniques through recipes that clearly define the problem being solved with a working solution.
Popular Tags: cakephp | theory | optimization | javascript-development | asp-net | css | jquery-development | sql | ajax | c

Search:
Follow @endyourif rss Facebook LinkedIn

Dependent DLL is not getting copied to the build output folder in Visual Studio Dependent DLL is not getting copied to the build output folder in Visual Studio

Published on Apr 14, 2019 by Jamie Munro

I was struggling the other day where one of my NuGet packages DLL that was installed in a separate MVC project was not being copied to my bin directory. I have discovered two potentially reasons why this was occurring. Read on for two different potential solutions.

Read more >

Tags: dll | ASP.NET | c#

Two different versions of the same DLL with C# Two different versions of the same DLL with C#

Published on Apr 13, 2019 by Jamie Munro

Recently I was stuck with the error Try removing one of the references or sign them to enable side-by-side. This is not a common error, but I received it because I was in the very unfortunate situation of requiring to have two different versions of the same DLL installed in my solution. Let's explore how I worked around this.

Read more >

Tags: dll | ASP.NET | c#

HtmlHelper Extenstion to convert an object to JSON with C# HtmlHelper Extenstion to convert an object to JSON with C#

Published on Apr 10, 2019 by Jamie Munro

Let's create an HTML Extension for C#'s HtmlHelper class that converts a class or object to JSON for use with your JavaScript code. I use this in my MVC projects inside my Razor Views. The solution leverages NewtonSoft's JsonConvert NuGet package.

Read more >

Tags: ASP.NET | c# | htmlextension | json

C# Convert any value to a boolean C# Convert any value to a boolean

Published on Apr 5, 2019 by Jamie Munro

Problem


You accept a variety of user input that you want to intelligently convert to a valid boolean variable. E.g. string of On = true. No = false.

Solution


Read more >

Tags: ASP.NET | c#

C# Ordinal String Extension C# Ordinal String Extension

Published on Mar 29, 2019 by Jamie Munro

Let's explore creating an extension method to convert a number to an ordinal value, e.g. 1st, 2nd, 3rd, etc.

Read more >

Tags: ASP.NET | c# | ordinal | modulus

Entity Framework's Code-First with an ObjectContext Entity Framework's Code-First with an ObjectContext

Published on Mar 20, 2019 by Jamie Munro

Pass Model or Form Data with MVC when redirecting Pass Model or Form Data with MVC when redirecting

Published on Mar 13, 2019 by Jamie Munro

Compile Views with your MVC project Compile Views with your MVC project

Published on Mar 6, 2019 by Jamie Munro

C# Truncate String Extension C# Truncate String Extension

Published on Feb 28, 2019 by Jamie Munro

MVC: Accessing the RouteData inside of your C# code MVC: Accessing the RouteData inside of your C# code

Published on Feb 27, 2019 by Jamie Munro

C# HtmlExtension to display SVGs C# HtmlExtension to display SVGs

Published on Feb 16, 2019 by Jamie Munro

C# Improving string.IsNullOrEmpty readability C# Improving string.IsNullOrEmpty readability

Published on Feb 5, 2019 by Jamie Munro

C# Convert date from UTC to EST C# Convert date from UTC to EST

Published on Jun 7, 2017 by Jamie Munro

How to return a CSV from ASP.NET Web API using C# How to return a CSV from ASP.NET Web API using C#

Published on May 4, 2017 by Jamie Munro

Advanced Automatic Ninject Bindings Advanced Automatic Ninject Bindings

Published on Jan 13, 2014 by Jamie Munro

Automatic Ninject Bindings Automatic Ninject Bindings

Published on Jan 7, 2014 by Jamie Munro

Automapper Performance Testing Automapper Performance Testing

Published on May 27, 2013 by Jamie Munro

Why the Repository Pattern Why the Repository Pattern

Published on May 20, 2013 by Jamie Munro

Entity Framework Beginnerís Guide Done Right Entity Framework Beginnerís Guide Done Right

Published on May 13, 2013 by Jamie Munro

Why Java Makes Me Tremble In My Boots Why Java Makes Me Tremble In My Boots

Published on May 6, 2013 by Jamie Munro

My First Experiences with Kinect for Windows - @KinectWindows My First Experiences with Kinect for Windows - @KinectWindows

Published on Mar 5, 2013 by Jamie Munro

Javascript, the Back Button, and Windows Phone 8 Development Javascript, the Back Button, and Windows Phone 8 Development

Published on Feb 18, 2013 by Jamie Munro

The Best Way to Prevent SQL Injection The Best Way to Prevent SQL Injection

Published on Sep 19, 2012 by Jamie Munro