Tag Archives: aspnet.mvc

Master Details with Dialog in ASP.Net MVC and Unobstrusive Ajax

Today’s post explains a user interface that is not uncommon. The user interface consists of a list of items, and if the user clicks a link in the row of data for an item, a dialog window appears so the … Continue reading

Posted in .Net, Ajax, ASP.Net MVC, jQuery | Tagged , , | 3 Comments

Accessing Embedded Resources from Razor Views in ASP.Net MVC

In razor, there is no access to the ClientScriptManager so there is no readily available method of using that class’s useful GetWebResourceUrl method to retrieve embedded resources. There are few techniques for synthesizing the functionality, revolving around the reflection of … Continue reading

Posted in Razor | Tagged , | 1 Comment

Localization of Dates in ASP.Net MVC

Introduction It is a somewhat inconvenient truth that users of your web site are everywhere but they don’t all talk the same language or even do simple things like read dates in the same way. ASP.Net prov ides rich support … Continue reading

Posted in ASP.Net MVC, jQuery, Razor | Tagged , , , | 1 Comment

Using Unobtrusive Ajax Forms in ASP.Net MVC3

This post covers how to use the new unobtrusive libraries in ASP.net MVC3 to provide an improved form submission user experience utilising AJAX. The idea is to have the whole form contents submitted and then replaced by the server generated … Continue reading

Posted in Ajax, ASP.Net MVC, Javascript | Tagged , | 12 Comments

Custom Unobstrusive Jquery Validation in ASP.Net MVC 3

Introduction This post demonstrates how to add client side unobtrusive validation for custom validation attributes. I will use a real example, which is the client side validation of the Australian Business Number and Australian Company Numbers for registered companies in … Continue reading

Posted in ASP.Net MVC, jQuery | Tagged , , | 3 Comments

Applying unobtrusive jquery validation to dynamic content in ASP.Net MVC

The new unobtrusive validation features of ASP.net MVC are great, but I was surprised to find that once the validators have been applied for a document, validators as a result of dynamic content will not be applied, even if you … Continue reading

Posted in ASP.Net MVC, jQuery | Tagged , , | 46 Comments

Changing Posted Form Values in ASP.Net MVC 3

A quick note to explain the way ASP.MVC apparently applies form values using the html helper methods (EditorFor, TextBoxFor etc) On a GET, the form values are extracted from the ViewModel as you would expect, so if you have some … Continue reading

Posted in ASP.Net MVC | Tagged , | Leave a comment