Jim's Blog Ramblings about novels, comics, programming, and other geek topics

6Apr/112

How to append options to CascadingDropDown after initially populated via AJAX Web Service

Google AdSense

The setup: Microsoft ASP.NET and AJAX Control Toolkit components

I needed to add additional dropdown options to a DropDownList web control in use by the Ajax Control Toolkit CascadingDropDown ASP.NET AJAX extender. The CascadingDropDown provided a means to get an automatic population of a set of options called by the web service. This AJAX call also passes in the parent item, so that the list items cascade (show items related to the parent control).

An example could be 2 drop down lists: Automobile Make and Automobile Model. If the user selects “Ford” from the Automobile Make drop down list, then only Ford models are listed in the Automobile Model drop down list. If the user changes the Automobile Make to “Honda”, then the items in the Automobile Model changes to show only Honda models.

I needed a way to append an “All” option to the drop down list, but I didn’t want to automatically include “All” as valid option in my Web Service. I wanted to append it on a specific form rather than as part of the data feed.

To start, you need to have a working set of CascadingDropDown web controls. I’m not to explain that set up, because you need to figure out that before you can add additional elements.

3Apr/110

2010 Year in Review

Google AdSense

Another late year in review post.

Previous lists: 2009, 2008

Blogging in Review (2010)

Posts tallied from 2009-12-31 to 2010-12-31

Top 2010 Months (By Views)
  1. November (22,010)
  2. October (20,507)
  3. March (17,619)
  4. September (16,509)
  5. August (15,987)
Total Views

2010 (year) = 199,063

 

Life in Review (2010)

2010 continued my travels to a few cities that I’ve always wanted to visit and return to see sights that I missed the last time I visited the city.

* denotes a first time

(stopping at airports or just in town for business without sight seeing does not count towards list below)

US Destinations

Portland, Oregon *

  • Pittock Mansion *
  • Japanese Garden *
  • Multnomah Falls *
  • Washington Park *
  • Forest/Linnton Park *
  • Cannon Beach, Oregon *
  • Seaside, Oregon *

St. Petersburg, Florida *

  • Honeymoon Island State Park *
  • St. Petersburg Pier *
  • Historic Round Lake Park *
  • Straub Park *

Boston, Massachusetts *

  • Cape Cod (Eastham) *
  • Wellfleet Bay Wildlife Sanctuary (Cape Cod) *
  • Cape Cod National Seashore *
  • Provincetown *
  • Boston Commons *
  • Cheers Bar *
  • Beacon Hill’s Acorn Street *
  • Faneuil Hall *
  • Harvard (Cambridge) *

New York City, NY *

  • Times Square *
  • Two Broadway Plays (Chicago and Next to Normal) *
  • Rockefeller Center Plaza *
  • Penn Station *
  • Wall Street *
  • China Town *
  • Washington Square Park (NYU) *
  • New York City Public Library *

Washington, DC

  • Smithsonian Institute *
  • Iwo Jima Monument
  • National Gallery of Art *
  • Smithsonian Institution, National Air and Space Museum *
  • United States Botanic Garden *
  • United States Capitol (outside only) *
  • United States Supreme Court Building (outside only) *
  • Mt. Vernon Square *
  • US Navy Memorial *
  • Library of Congress, Jefferson Building *
  • Sully Park (near Dulles International Airport) *

San Juan, Puerto Rico *

  • San Juan National Historic Site (Castillo de San Cristobal) *

Las Vegas, Nevada

International Destinations
  • Grant Turk, Turk and Caicos *
  • Philipsburg, St. Maarten *
  • Half Moon Cay, Bahamas *
Local Events
  • Camping at Palomar Mountain *
  • Comic-Con 2010
  • Eastern Caribbean Cruise *
  • Jury Duty (as alternate Juror) *
  • The Avett Brothers and Brandi Carlile Concert (Los Angeles, CA) *
  • La Mesa Oktoberfest *