In this sample we are going to take a different approach to importing data from the traditional file upload method. This sample has a textarea and a button. Users will open their .csv or .txt file, copy the contents, paste them into the textarea, and submit. Setting up the form This part is pretty basic: [...]
ASP.NET MVC sample application
Below is a fully functional asp.net mvc sample application project. Go ahead a download it, play with it, make suggestions, extend, etc. If you have any suggestions for improvements, just drop me a line or leave a comment. The sample project assumes you have Visual Studio 2008 installed, the rest of the dlls and javascript [...]
Dynamically populate dropdownlist in ASP.NET MVC
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 [...]








