View Single Post
  #2 (permalink)  
Old April 23rd, 2004, 11:07 AM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

All you need to do is turn set AutoPostback to "True" on the dropdownlist control. This will make the Html <select> control fire the form post when it's "onChange" client event is called. Just the same way as the "Jump To:" selector on this site works. However, ASP.Net handles creating the javascript for you. You need only set that attribute to turn it on.

<asp:dropdownlist Runat="server" ID="dropdownlist1" AutoPostBack="True" />

Peter
-------------------------
Work smarter, not harder