I like these jQuery methods a lot: addClass, removeClass, toggleClass.I wish ASP.NET Web Controls have similar functionality out of the box like jQuery for manipulating CSS class like below. // You MUST include your own namespace here // in order for the Extension Methods to be visible in your code. using YourProjectNamespace.Extens... textBoxControl.AddCssClass(... textBoxControl.ToggleCssCla... disable"); So I created extension methods for the WebControl ......
The ASP.NET MVC integration with the jQuery Validation Plugin does not work the way how I want it to with the Validation Summary Errors.
I want to display the actual errors messages in the Validation Summary "control" and asterisks next to the User Input Fields (textboxes and dropdowns). This is a blog post on how to tweak the MicrosoftMVCJQueryValidation.js file to achieve the desired behavior.
When we were working with ASP.NET MVC 2, we needed to write our own JavaScript to get Client-Side Validation Summary with jQuery Validation plugin. I am one of those unfortunate people still stuck with .NET Framework Runtime 2.0 and .NET Framework 3.5; meaning I am still on ASP.NET MVC 2. So I will still keep on supporting by answering any question you may have with my original code. Long awaited ASP.NET MVC 3 has been released, and it supports Client Side Validation Summary with jQuery out-of-the-box ......