Category

MVC

How to put your ASP.NET webforms or MVC app into maintenance mode

This post is about a very helpful, yet largely unknown feature of ASP.NET applications hosted in IIS. A built in maintenance mode so to speak. The app_offline page.

If you want to put one of your ASP.NET web apps into maintenance mode, simply create a maintenance .htm page with the markup you want, and name it app_offline.htm. By placing this into the root of your application, IIS w…

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

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 to perform the collapse/expand on a…

Preventing Enter button from expanding detail rows on Kendo UI Grid

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 batch editing, and there is a requirement that some rows will have expanding…

Selenium vs Coded UI Thoughts

I should mention that this is not intended to be a full in-depth review and comparison of the two UI testing frameworks, just a quick post on my general thoughts after using both of them on the same project.

I have recently started work on introducing some basic automated UI tests to one of our solutions. Before I started down this road, I naturally googled “Selenium vs Coded UI”, to get…

Unobtrusive Validation with Kendo UI DropDownList

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.

Since jQuery validate 1.9+, by default, hidden fields will not b…

VSLive 2015 in Austin, TX!

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 lot of it. All of them were very interesting and everything was run very smoothly, overall a great…

Null or empty model values after posting to controller and editing model

I have been working with MVC for a little while now and always learning new things about it, yesterday I ran into something for the very first time, so wanted to share.

I’ve seen the pattern of using a single view for both creation/editing of a model, it’s not very uncommon. In this particular case, I was working with a controller that would save its bound model to the database and then assign…

Custom 401 error pages in MVC alongside Windows Authentication

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 quite a bit of time searching for an elegant solution to this, but really came up wit…

Libraries for Unit Testing MVC5 Controllers

There are various libraries available to help you unit test your controller actions, returned views and models, and action results with MVC. One that I have recently started using is TestStack.FluentMVCTesting. This library allows you to perform actions on your controllers within your unit tests, and then verify, with a fluent syntax, that those actions behaved correctly.

Here are a cou…

MVC Model Binding with an Ajax Form Submit

You may come across a time where you would like to submit a form using Ajax, and still want to preserve the useful model binding of MVC. Normally when you submit a form using a standard submit (non async), the MVC framework will automatically take care of pulling your values out of your form and populating a model on your controller. This is one of the most useful, time-saving features of…

Testimonials

What My Clients Say

Karin - Hope and Future

Brent has always been very prompt and generally exceeds our expectations with his work. His maintenance fee is very reasonable. I strongly recommend him!  We get many compliments on our beautiful web site!

Dan

I contacted Krueger Web Design and Brent did everything.  He setup a test site with the changes so we could verify everything was correct before we transferred from my old hosting provider.  During the setup and conversion Brent was extremely professional and responsive. He responded to any issues the same day.

Dan Kaufman
Emily - GFCLT

We've had a great experience working with Krueger Web Design. Prompt responses, great ideas, effective work... all at a reasonable price! This was the perfect fit for our organization.

Mahmud - ACMC

I would love to recommend you to anyone! You have been very helpful when we needed you the most.

Brian - SEMNIC

Working with Krueger Web Design was effortless. Communicating what I wanted for the website and the results that I saw were identical. The customer service was always prompt and I am completely satisfied with the product.

Zach - Stadium Club

Exactly what I wanted! Fast turnaround time and very affordable. Answered all of our questions quickly and made adjustments promptly. Very easy to work with and puts everything into terminology that even I can understand!

Contact Krueger Web Design

Have a question for me? Need an estimate on some work? You can email me at brent@kruegerwebdesign.com or drop me a line using the button below:

Copyright © 2017 Krueger Web Design - All rights reserved
Web Design in Madison, WI