Contents tagged with mvc
Different ASP.NET MVC master page for authenticated and unauthenticated users
I guess this is a common problem: you need to have different web site layout for unauthenticated users. In simple cases this is very easy: just use masterPageFile attribute on views. But it gets more … more
SSL, IE8 and strict cache headers (will not work)
Recently I encountered a bug that only some users saw, and which did not reproduce locally on development environment. The setup was:
An intranet page has an IFrame
…that is dynamically … more
How ASP.NET Web forms feels after 3 years of not using it
I have been an ASP.NET developer since it was invented, and a legacy ASP developer before that. For long I spent most of my time doing ASP.NET Web Forms and it was OK: I remember lots of weird … more
How-to localize jQuery UI Datepicker within ASP.NET MVC site
JQuery’s date picker UI component is very easy to localize on Javascript level. On this blog post I’ll describe how to ensure that date picker culture follows site’s server side … more
Disable submit buttons on form submit with jQuery.validate and ASP.NET MVC 2
I had a very common requirement to fill: when user clicks form submit button (or enter on keyboard) the button needs to be disabled in order to prevent double submits. Double submits could of course … more
Controller dependency missing on test? Try MvcContrib TestControllerBuilder
Ever faced this situation: You have nice and easy controller method, say:
public ActionResult Demonstrate(string id) {
this.Repository.Demonstrate(id);
string url = … more
Selecting MVC action method based on any named form value
Yesterday I blogged about using form button names to select action methods on an ASP.NET MVC controller. After using that attribute for a while I realized that I can make a generalization out of … more
Selecting MVC action method based on the button clicked
Very common problem in form-heavy solutions is to be able to have one HTML form, but two different submit buttons for it. Think “Save” and “Delete”:
<div id="buttons"> … more