ASP.NET Using VB?

Discussion in 'Digital Media' started by imported_tom_allen95, Apr 22, 2008.

  1. I need to return the value from a drop down list box.

    I have three values in the Drop down list box small, medium and large.

    With a Checkbox I can check the value with something like

    If (CheckBox1.Checked And CheckBox2.Checked) = True Then
    Whatever = whateveris

    How would I do the same with a Drop down list box for my three values of small, medium and large?
    I haqve to do it in VB...its a college course...Do you think it will also work in VB?
  2. code in C#:
    string size=DropDownBox1.SelectedIndex.ToString();
    MessageBox.ToString(size);

    this fetches the value uve selected from the dropdownbox in to the messagebox..
Loading...

Share This Page