ASP.Net MVC Remote Validator 27. October 2012 Eric Coffman (0) This is an old post from my now defunct personal blogSometimes regex validators are not enough. I have a case where I want to make sure an email address exists in a database when a person is filling out a form. To do this you can use a remote validator which performs an AJAX call to an action for a ... [More]
Improving the yslow score with bundling, minification, gzip, and far future expiration of static content 27. October 2012 Eric Coffman (0) This is an old post from my now defunct personal blog Over time I have learned some techniques to optimize my web app. Here are a few steps to enable this for an MVC site.First, enable dynamic compression in IIS - http://technet.microsoft.com/en-us/library/cc753681(WS.10).aspxInstall this nuge... [More]
HTML sanitization for ASP.Net 27. October 2012 Eric Coffman (0) This is an old post from my now defunct personal blogI spent a great deal of time trying to find a reasonable way to clean HTML. I wanted to remove script tags, broken HTML, and etc but still allow rich text editing. Most of the sanitization routines are just too strict. My input is from a ckeditor ... [More]