Category: ASP.NET MVC
-
How to Run Your ASP.NET MVC App from VS Code by Pressing F5 (Yes, Even the Old .NET Framework Ones)
I spend most of my day in Visual Studio Code. It is fast, it is light, and it does not chew through 6GB of RAM just sitting there.…
-
Passing Checkbox Data in ASP.NET MVC Without HTML Helpers
Checkboxes in ASP.NET MVC look simple, but they’re one of the most common sources of confusion—especially when using HTML helpers. After wrestling with helpers that should work but…
-
ASP.NET MVC to .NET Core MVC Migration Cheat Sheet
Partial Views ASP.NET MVC (Legacy) .NET Core MVC HTML Helpers vs Tag Helpers ASP.NET MVC (Legacy) .NET Core MVC Configuration ASP.NET MVC (Legacy – Web.config) .NET Core MVC…
-
Getting HTML Datepickers to Display Bound Data Correctly
I was trying to get a HTML datepicker to show the underlying data that it was bound to, but was running into issues with the date format. The…
-

Simple way to sort dates in any format with jquery.datatables
Initially, I was formatting the date in my table using any format I liked. However, I soon realized that this would ruin sorting. For example, if you have…
-

Working with Null dates in DateRange Picker.
👋 Hey there! I recently worked on implementing a date range picker using the Daterangepicker plugin in my web application. It was a bit of a challenge at…
-

File Audit with Entity Framework: Retrieve and Check Missing Files with Closest Modification Date
The FileAudit method is a useful way to retrieve file names from a database table and check if these files exist in a specified directory. With supporting methods…
-

Adding session timeout to ASP.NET MVC 5
As part of security improvements, we needed to add a session time out in one of our apps. One of the challenges though is that users could be…
-

MVC 5 Dynamic redirect Uri for external OpenId authentication
If you are like me, you dont like having extra configuration in your web transforms. Originally I was setting the redirect uri statically from the web config using…
-
Fixing MVC 5 Intellisense false errors (erroneous errors) 😢😣😖
This one really had me scratching my head. My error was looking similar to this stack overflow post – like this: The type ‘Expression<>’ is defined in an…