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.SelectedI tem.Text = "Product" Then
product.Visible = True
End If
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.SelectedI
product.Visible = True
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If RadioButton1.Checked = True
Product.visible = true
End If