Estoy haciendo un formulario para guardar informacion en BD

ok aqui muestro y escondo mis paneles
****************************************
Sub drow_selec(sender As Object, e As EventArgs)
if lista.SelectedItem.text="Investigacion" then
Panel1.Visible = True
Panel3.Visible = false
Panel2.Visible = false
else
panel1.Visible= false
end if
if lista.SelectedItem.text="Veterinaria" then
Panel2.Visible = True
Panel3.Visible = false
Panel1.Visible = false
else
panel2.Visible= false
end if
if lista.SelectedItem.text="Entrenamiento" then
Panel3.Visible = True
Panel1.Visible = false
Panel2.Visible = false
else
panel3.Visible= false
end if
End Sub
****************
aqui accedo a lo que esta seleccionado en mi dropdownlist
Private sub boton_click(sender as object, e as EventArgs)
dim list as string =lista.selectedItem.value
response.write(list & ".<br>")
** pero para solo selecionar el los items del radiobuttonlist del panel seleccionado como le puedo hacer??
lo ideal es esto "dim radio as string= radiolist1.selectedItem.value" pero tengo tres radiolist que estos estan en cada panel y el problema es que si ago esto
dim radio as string= radiolist1.selectedItem.value
dim radio2 as string= radiolist2.selectedItem.value
dim radio3 as string= radiolist3.selectedItem.value
estaria tomando en cuenta todos los paneles y requiero que se deshabiliten los que no necesito para poder acceder solo a los elementos del panel seleccionado
end sub
Alguna ayuda!
este es mi codigo completo codigo completo...........
<script runat="server">
Sub drow_selec(sender As Object, e As EventArgs)
if lista.SelectedItem.text="Investigacion" then
Panel1.Visible = True
Panel3.Visible = false
Panel2.Visible = false
else
panel1.Visible= false
end if
if lista.SelectedItem.text="Veterinaria" then
Panel2.Visible = True
Panel3.Visible = false
Panel1.Visible = false
else
panel2.Visible= false
end if
if lista.SelectedItem.text="Entrenamiento" then
Panel3.Visible = True
Panel1.Visible = false
Panel2.Visible = false
else
panel3.Visible= false
end if
End Sub
Private sub boton_click(sender as object, e as EventArgs)
dim list as string =lista.selectedItem.value
dim radio as string= radiolist1.selectedItem.value
dim radio2 as string= radiolist2.selectedItem.value
dim radio3 as string= radiolist3.selectedItem.value
response.write(list & ".<br>")
response.write(radio & "..<br>")
end sub
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<p>
Menu
<asp:DropDownList id="lista" runat="server" AutoPostBack="true" OnSelectedIndexChanged="drow_selec">
<asp:listItem>--</asp:listItem>
<asp:listItem>Investigacion</asp:listItem>
<asp:listItem>Veterinaria</asp:listItem>
<asp:listItem>Entrenamiento</asp:listItem>
<asp:listItem>Compañia</asp:listItem>
<asp:listItem>voluntarios</asp:listItem>
</asp:DropDownList>
</p>
<p>
<asp:Panel id="Panel1" runat="server" Visible="false" Height="138px" Width="210px">
Submenu
<br>
<asp:RadioButtonList id="radiolist1" runat="server">
<asp:ListItem selected="true">Descripcion</asp:ListItem>
<asp:ListItem>Infraestructura</asp:ListItem>
<asp:ListItem>Programas de investigacion</asp:ListItem>
<asp:ListItem>vinculo institucional</asp:ListItem>
<asp:ListItem>Contacto</asp:ListItem>
</asp:RadioButtonList>
</asp:Panel>
<asp:Panel id="Panel2" runat="server" Visible="false" Height="138px" Width="210px">
Submenu
<br>
<asp:RadioButtonList id="radiolist2" runat="server">
<asp:ListItem selected="true">Descripcion</asp:ListItem>
<asp:ListItem>Infraestructura</asp:ListItem>
<asp:ListItem>Programas de cuidado</asp:ListItem>
<asp:ListItem>vinculo institucional</asp:ListItem>
<asp:ListItem>Contacto</asp:ListItem>
</asp:RadioButtonList>
</asp:Panel>
<asp:Panel id="Panel3" runat="server" Visible="false" Height="138px" Width="210px">
Submenu
<br>
<asp:RadioButtonList id="radiolist3" runat="server">
<asp:ListItem selected="true">Descripcion</asp:ListItem>
<asp:ListItem>Infraestructura</asp:ListItem>
<asp:ListItem>Entrenamiento medico</asp:ListItem>
<asp:ListItem>IMATA</asp:ListItem>
<asp:ListItem>Contacto</asp:ListItem>
</asp:RadioButtonList>
</asp:Panel>
</p>
<p>
Url
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
</p>
<p>
Palabras clave
<asp:TextBox id="TextBox2" runat="server" TextMode="MultiLine" Height="60px" Width="250px"></asp:TextBox>
</p>
<p>
Descripcion
<asp:TextBox id="TextBox3" runat="server" TextMode="MultiLine" Height="60px" Width="250px"></asp:TextBox>
</p>
<p>
<asp:Button id="Button1" runat="server" OnClick="boton_click" Text="Guardar"></asp:Button>
</p>
<p>
</p>
</form>
</body>
</html>
Si me explico no?

hasta pronto
