Archive for the ‘jQuery’ Category

MVC – Using AntiForgeryToken over AJAX

Just prior to their 1.0 release, the ASP.NET MVC dev team added a nice feature to prevent CSRF attacks, the AntiForgeryToken. In brief, a CSRF attack is when a 3rd party gets one of your users to accidentally run a malicious script that accesses normally restricted URLs. The AntiForgeryToken pattern allows the web server to [...]


Different Action Results with ASP.NET MVC and jQuery

I’m a big fan of the ASP.NET MVC framework. I love the fine grained control it gives you over everything. But what I love most is that you can unleash the fully armed and operational firepower of jQuery.
Recently, I’ve been working on a site that is using both MVC and jQuery to make AJAX calls. [...]