Posts Tagged ‘ASP.NET’

ASP.NET MVC 3: Validate complex Types (Objects & Lists) in Ajax Form using jQuery and JSON on Client Side and Server Side

This blog post shows how to validate models containing complex types such as Objects and Lists in ASP.NET MVC 3. We start with the source code described in one of my previous posts “ASP.NET MVC 3: Using JSON result for jQuery Ajax Forms validation” (you can download the Visual Studio 2010 project here). Summarized this […]

Read more…

ASP.NET: Disable browser and proxy caching for aspx resources

The following lines of code can be put into a .aspx file to prevent the resource from being cached on clients or proxies: <% Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); %><% Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); %> To prevent caching, these lines of code change the header of the server’s HTTP response by setting the following values: Cache-Control: no-cache, no-store Expires: -1 […]

Read more…

ASP.NET development: Features, tips & tricks you should know about

In this blog post I will list features, tips and tricks that one should know about when developing ASP.NET web applications (some of them will also work for ASP.NET MVC applications). The points listed below are not sorted in any way; it’s just a conglomeration of things that only need little (programming) effort to speed […]

Read more…