January 25, 2012 at 12:23 PM
—
Dustin Horne
Lately I've been using a lot of jQuery and other custom javascript in my projects. I like to use external CDNs when possible to load my script files. In particular, I like to use the asp.net CDN for use with jQuery. For much of this work I can simply put my script references in the layout pages, however there are times when I want specific scripts for specific pages. There are also times when I want to be able to upgrade a script to a newer version. This may require modifying multiple views. Additionally, it would require modifying my HTML/Razor for at least my layout view and re-uploading it to the server. More...
November 16, 2011 at 2:32 PM
—
Dustin Horne
Recently I was working on a project that required upload of images. I wanted to upload the images AJAX style without refreshing the page and thought jQuery would be a good fit. Using jQuery to post standard forms is extremely simple, but when posting multi-part forms for uploading files it's not so intuitive. This is due to browser security restrictions and sandboxing. Today I'm going to show you how to fake an asynchronous upload without reloading the page and get a result back from the server. More...
June 14, 2011 at 4:38 PM
—
Dustin Horne
Recently, I had to implement a dynamic custom 404 error page in an ASP.NET MVC2 website. My first instinct was to turn CustomErrors mode on and setup a 404 Error, but this failed to return my custom error page in a shared hosting environment and instead displayed the default IIS 404 page. I'll walk you through fixing this in just a minute, but for now I want to show you how to create the custom 404 page.
More...