ASP.NET

August 16, 2016

That Conference 2016

By |2016-08-16T13:36:33+00:00August 16th, 2016|Categories: ASP.NET, C#, General Technology|

I'm about a week out from attending That Conference 2016 in the Wisconsin Dells. This has been my 2nd year attending, and I can't say enough good things about it. Clark and an army of volunteers do a tremendous job of running this year after year, and it's greatly appreciated by all. This year was better than [...]

April 13, 2016

January 28, 2016

Creating a collapse all, expand all button on the Kendo UI Grid

By |2016-01-28T16:39:25+00:00January 28th, 2016|Categories: ASP.NET, MVC, Telerik|

The Kendo UI grid has some great functionality out of the box, especially it's ability to handle hierarchcal data with detail item templates. I wanted to include a expand/collapse all button right within my grid. Here was the code I used to do it. Credit to Daniël from http://www.telerik.com/forums/collapse-all-grid-rows on giving me the code I needed [...]

Preventing Enter button from expanding detail rows on Kendo UI Grid

By |2016-01-20T09:47:29+00:00January 20th, 2016|Categories: ASP.NET, MVC, Telerik|

Admittedly this is a pretty custom/specific use of the Kendo UI Grid, but just in case someone else needs to do this type of thing, you never know... Scenario: I have an application that makes use of the Kendo UI grid. Specifically the hierarchacal version of the grid with expanding detail rows. The grid uses inline [...]

June 13, 2015

Unobtrusive Validation with Kendo UI DropDownList

By |2018-03-05T22:29:42+00:00June 13th, 2015|Categories: ASP.NET, Misc. Fixes, MVC, Telerik|

Really short post here. If you are trying to use jQuery unobtrusive validation with Kendo UI's DropDownList , you might notice that it doesn't work right out of the box. The form will simply validate, and will not actually check your selected value. This is a pain if you're trying to validate that a field is required. [...]

VSLive 2015 in Austin, TX!

By |2018-06-27T17:47:50+00:00June 4th, 2015|Categories: ASP.NET, C#, General Technology, IIS, MVC, SQL Server, Testing|Tags: , |

I'm writing this post from the Austin airport as I'm getting ready to head home after a very educational 4 days in Austin for VSLive 2015. I wanted to quickly write down a lot of key points from all of the sessions I attended. I figure writing about something is a good way to retain a [...]

February 3, 2015

Custom 401 error pages in MVC alongside Windows Authentication

By |2018-03-05T22:32:04+00:00February 3rd, 2015|Categories: ASP.NET, IIS, MVC|Tags: , , |

We use windows authentication for a lot of our web apps, but also want to serve up a custom 401 error page when users are not authorized to log in. This is tricky because this specific 401 error is handled directly by IIS, rather than the application itself, because it's a windows directory permission. I spent [...]

November 12, 2012

nopCommerce 2.40 Operation could destabilize the runtime error Fix

By |2018-06-27T17:47:50+00:00November 12th, 2012|Categories: ASP.NET|

Recently my web hosting provider decided to upgrade to .NET 4.5 , and as you may or may not know, .NET 4.0 and .NET 4.5 do not run side by side. This may cause some breaking changes in your 4.0 applications without you even knowing it, which is what happened to me. I was suddenly getting a "Operation [...]

July 24, 2012

MVC Controller Best Practices

By |2018-06-27T17:48:14+00:00July 24th, 2012|Categories: ASP.NET, MVC|

Here are a few basic best practice guidelines to keep in mind when writing your controllers using the MVC pattern with ASP.NET MVC. Keep controllers "skinny, keep action methods small Your controller actions should be kept as small as possible, with business logic living in your models.  "Fat Model, Skinny Controller" is the motto. Here is [...]

June 26, 2012

MVC Model Binding Not Working with Fields

By |2012-06-26T21:22:52+00:00June 26th, 2012|Categories: ASP.NET, MVC|Tags: , |

This will be a very quick/simple post. Maybe this is very clear to most people when they start out developing with ASP.NET MVC but it was not right away with me... When you are using 2-way model binding in MVC to bind your model to your view and back again, you MUST use properties with getters/setters, [...]