Category: jquery

Dynamically add options to dropdown list using jQuery

This post is going to be a fun little exercise, and is a technique that used to carry some overhead (in terms of postbacks and viewstate) back in the day. The objective is to provide users with a dropdownlist containing pre-selected options – but allow them to add their own options, and persist those options [...]

July 23 / 2011
Author bill sternberger
Category Html, jquery
Comments 1 Comment

Update textbox with ASP.NET, MVC, jQuery

This post arrives to you today from the awesome Hotel Dunn Inn in beautiful San Jose, Costa Rica! Best. Beds. Ever. It was time to clear the brain and work on some pet projects, and of course code. In this sample we will look at updating values in textboxes, and then notifying the user of [...]

March 05 / 2010
Author bill sternberger
Category ASP.NET MVC, jquery
Comments No Comments

Check username availability with jQuery, ASP.NET MVC, C#

This post shows how to add dynamic username availability lookup to an ASP.NET MVC view, using jQuery and C#. There are three parts to the solution: the html form, jQuery function, and the controller. Html form This part is pretty simple: a textbox for the username field with an onchange event, a div to hold [...]

February 22 / 2010

Latitude and Longitude Lookup with jQuery, C#, ASP.NET MVC

I recently had a requirement for a mapping application that required me to pass in longitude and latitude coordinates. It wasn’t realistic to have the user look those values up, so I had to figure out a way to automatically lookup the coordinates given a zip code. There are tons of pay services (some of [...]

February 18 / 2010
Author bill sternberger
Category ASP.NET MVC, C#, jquery
Comments 13 Comments

Advanced Auto-Complete with jQuery, MVC, and thumbnail pictures

This post extends an earlier post I wrote for a basic auto complete/auto suggest textbox. In this version, we are going to return a list of our favorite social media websites, by adding a new method to the prior post’s controller which allows thumbnail pictures to appear in the auto-suggest list. New MVC Controller Method [...]