Selecting option from drop down menu with querystring values

Last post 07-23-2007 12:34 PM by augustwind. 1 replies.

Sort Posts:

  • Selecting option from drop down menu with querystring values

    07-23-2007, 12:31 PM
    • Loading...
    • XanaLyoko
    • Joined on 07-03-2007, 4:07 PM
    • Posts 68

    In my pageI need to have the option to auto select a drop down menu that is generated by SQL code.  Does anyone know how I can do this?

    The next part is that that drop down menu is sposed to fire an on change event that will populate a second drop down menu using JavaScript, How would I fire this event or would it just fire itself after it has been selected with the query string?

    Thanks for any help,

    Xana

    If history is to change let it change. If the world is to be destroyed so be it. If it is my fate to die ... I must simply laugh.
  • Re: Selecting option from drop down menu with querystring values

    07-23-2007, 12:34 PM
    Answer
    • Loading...
    • augustwind
    • Joined on 07-21-2002, 7:16 PM
    • Garland, TX
    • Posts 4,076
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    After a DDL has been populated by data, you can select a specific item in the list, using the DataBound event of the DDL
    From the Tips and Tricks section at ASPNet101.com:
    http://www.aspnet101.com/aspnet101/tips.aspx?id=232

    for the other item, check out this code sample :
    http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=ddl3MDB

    David Wier
    MVP/MCP/ASPInsider
    ASPNet101.com - where to look first!
    iWrite Pro - doc/rtft to HTML/One Click PDF & much more
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter