There are a few different ways to dynamically populate a dropdownlist in MVC: you could use a classic ASP old school loop with a bunch of response.writes, you can store the list’s collection into ViewData and use an html helper, or you can use jquery. We’ll look at samples for each way. Populate dropdownlist with [...]
jQuery Modal Dialog without the x button
Found myself wanting to provide a modal dialog (preferably in jQuery of course!) to gate first-time page visitors. The requirements were: On page load, display modal dialog with a form to request basic contact information Disable the “esc” key to force the user to enter the info or click a “no thanks” button Hide the [...]
Use jQuery to change a form’s action url
This is another quick and dirty post, more for future reference when I need to access this snippet again! The scenario is if you have one form on a page, but want to change the target on the fly for whatever reason. Here are the two magical lines:
Microsoft and Google jQuery CDN Link
So what is a Content Delivery Network (CDN)? In a nutshell, a CDN is a network of computers strategically placed around the world that serve up cached content to users. The content types include images, videos, style sheets, and in this case, script libraries. As you can imagine, your pages will load faster when browsers [...]




