I have an updatepanel(named UpdatePanelSignup) inside another updatepanel(named UpdatePanelBusiness)...
UpdatePanelBusiness is set initially to visible=false...
I also have a dropdownlist(named dropdownlistbusiness) inside UpdatePanelSignup...
I have two choices for the dropdownlist... Yes and No...
I want to make the UpdatePanelBusiness visible when I choose Yes in the dropdownlistbusiness...
Here's the code.. but it creates an exception which is the subject of this post...
Dim objdropdown As New DropDownList
objdropdown = UpdatePanelSignup.FindControl("dropdownlistbusiness")
If objdropdown.SelectedValue = "Yes" Then
UpdatePanelSignup.FindControl("updatepanelbusiness").Visible = False
ElseIf objdropdown.SelectedValue = "No" Then
UpdatePanelSignup.FindControl("updatepanelbusiness").Visible = True
End If
Please Convert your snippet to VB... Thanks!