Link to home
Start Free TrialLog in
Avatar of johnqtr
johnqtr

asked on

Make other objects visible

I have a radiobuttonlist that has 3 values:

Date
Product
Tank

I also have a dropdownlist called "product", dropdownlist called "tank" and a textbox called "datetxt".

When the user selects "Product" from the radiolist I want the dropdownlist (product) to be visible and when the user selects from the radiolist "Tank", then I want the dropdownlist (tank) to be visible.  All of these controls, except for the radiolist are not visible on page_load.  The radiobuttonlist has autopostback set to True.  I thought I could write something like this, but it doesn't work.

If RadioButtonList1.SelectedItem.Text = "Product" Then
   product.Visible = True
End If
Avatar of Torrwin
Torrwin
Flag of United States of America image

Have you tried this?

If RadioButton1.Checked = True
  Product.visible = true
End If
ASKER CERTIFIED SOLUTION
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial