Change value in dropdown2 if dropdown1 is clicked

Discussion in 'ASP .Net' started by jonny, Sep 25, 2009.

  1. jonny

    jonny Guest

    Hi guys,

    I have two dropdown controls on a web form. When I click on dropdown1
    and make selection I would like to fire a sub that makes dropdown2 say
    the word "test". This is just a little exercise so I understand how to
    trigger a sub based on a dropdown click. Please advise.
     
    jonny, Sep 25, 2009
    #1
    1. Advertising

  2. On Sep 25, 2:59 pm, jonny <> wrote:
    > Hi guys,
    >
    > I have two dropdown controls on a web form. When I click on dropdown1
    > and make selection I would like to fire a sub that makes dropdown2 say
    > the word "test". This is just a little exercise so I understand how to
    > trigger a sub based on a dropdown click. Please advise.


    Take a look at the examples in MSDN
    http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.dropdownlist.aspx

    There is OnSelectedIndexChanged property that is referred to
    Selection_Change method
     
    Alexey Smirnov, Sep 27, 2009
    #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. Lasse Edsvik

    DropDown1.SelectedItem.Value.......

    Lasse Edsvik, Oct 4, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    1,397
    Lasse Edsvik
    Oct 4, 2004
  2. ABC
    Replies:
    0
    Views:
    612
  3. aboomar10

    Filltiring data in a dropdown2 with a value of dropdown1

    aboomar10, Nov 2, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    108
    Robert Koritnik
    Nov 3, 2004
  4. AFN
    Replies:
    5
    Views:
    425
  5. Tim_Mac
    Replies:
    4
    Views:
    110
    Tim_Mac
    May 21, 2005
Loading...

Share This Page