Onchange of dropdownlist say "country" loaded,it must load all "states" for that country in another

Discussion in 'ASP .Net' started by S.Guhananth, Apr 30, 2005.

  1. S.Guhananth

    S.Guhananth Guest

    S.Guhananth, Apr 30, 2005
    #1
    1. Advertising

  2. handle the selectionchange event and fire your query using the selected item
    as part of your where clause if you are going against a database. if the
    data is in a dataset, use a filter made up of the selecteditem

    --
    Regards
    Alvin Bruney
    [Shameless Author Plug]
    The Microsoft Office Web Components Black Book with .NET
    available at www.lulu.com/owc
    --------------------------------------------------


    "S.Guhananth" <> wrote in message
    news:...
    >I need to capture a country from dropdown list and use that in sql query.
    >
    > How to do this
    >
    >
    >
    > protected DataSet GetCountry()
    > {
    >
    > I have the code for this block
    >
    > }
    >
    > From
    > http://www.developmentnow.com/g/8_2004_12_0_0_0/dotnet-framework-aspnet.htm
    >
    > Posted via DevelopmentNow.com Groups
    > http://www.developmentnow.com
     
    Alvin Bruney [Microsoft MVP], Apr 30, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hai Nguyen

    Dropdownlist box for States of America

    Hai Nguyen, Jan 7, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    321
    Craig Deelsnyder
    Jan 7, 2004
  2. Zyron
    Replies:
    2
    Views:
    1,509
    Jukka K. Korpela
    Nov 8, 2005
  3. Y.S.
    Replies:
    3
    Views:
    1,026
    strajan
    Sep 17, 2003
  4. hazz
    Replies:
    0
    Views:
    2,619
  5. Petr Janda
    Replies:
    2
    Views:
    161
    rretzbach
    Mar 8, 2007
Loading...

Share This Page