Category: ASP.NET MVC

Import CSV or Tab Delimited Data with C#, ASP.NET MVC

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: [...]

February 11 / 2010

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 [...]

February 10 / 2010
Author bill sternberger
Category ASP.NET MVC
Comments 6 Comments

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 [...]

February 09 / 2010

TinyMCE samples with ASP.NET MVC

After using Telerik’s RadEditor control for years with all my asp.net web form applications, I found myself looking for a javascript alternative when I moved up to MVC. Having paid top dollar for RadEditor (which is a fine product!) and never used TinyMCE, I couldn’t imagine something free could be that good. Well it is! [...]

February 08 / 2010
Author bill sternberger
Category ASP.NET MVC, C#, Html, jquery
Comments 3 Comments

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 [...]

February 04 / 2010