DropDownList.Selected value becomes empty when running SelectIndex Changed

Discussion in 'ASP .Net Web Controls' started by Guido Steijaert, Jul 25, 2004.

  1. When I select a value in the dropdownlist a label needs to give this value.
    After selecting "Label10.text" = empty and also the value displayed in de
    dropdownlist is empty. Enclosed the code from te SelectedIndexChanged.

    Regards,

    Guido Steijaert

    Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As
    System.Object, ByVal e As System.EventArgs) Handles
    DropDownList1.SelectedIndexChanged

    Label10.Text = DropDownList1.SelectedValue

    End sub
    Guido Steijaert, Jul 25, 2004
    #1
    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. Replies:
    1
    Views:
    530
    =?Utf-8?B?U3JlZWppdGggUmFt?=
    Oct 31, 2005
  2. barry

    accessing selectIndex property

    barry, Feb 2, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    376
    barry
    Feb 2, 2007
  3. Replies:
    9
    Views:
    970
    Juha Nieminen
    Aug 22, 2007
  4. mldardy
    Replies:
    0
    Views:
    963
    mldardy
    Sep 28, 2010
  5. Stef Mientki

    and becomes or and or becomes and

    Stef Mientki, May 22, 2011, in forum: Python
    Replies:
    9
    Views:
    312
    Chris Angelico
    May 28, 2011
Loading...

Share This Page