Ho un file così:
codice:
<%@ Page Language="VB" Debug="true" EnableViewState="True" %>
<html>
<body>
<asp:radiobuttonlist id="sts" runat="server">
				<asp:listitem runat="server" Value="as" Text="Assolto" />
				<asp:listitem runat="server" Value="es" Text="Esonerato" />
				<asp:listitem runat="server" Value="ri" Text="Rivedibile" />
			</asp:radiobuttonlist>
			
				<asp:Label id="lbl0" runat="server" text="Causa:"></asp:Label>
				<asp:textbox id="militaryServiceCause" runat="server" ToolTip="Scrivi la causa del mancato servizio militare" Columns="83"></asp:textbox>
ora, se il radiobuttonlist sts ha valore diverso da "es" i controlli lbl0 e militaryServiceCause devono scomparire, ho provato così:
codice:
Sub stschange(sender As Object, e As EventArgs)
	If sts.SelectedItem.value = "as" OR sts.SelectedItem.value = "ri" then
		lbl0.visible = "false"
		militaryServiceCause.visible = "false"
	else
		lbl0.visible = "true"
		militaryServiceCause.visible = "true"
	end if
End Sub
aggiungendo al radiobuttonlist:
codice:
<asp:radiobuttonlist id="sts" OnSelectedIndexChanged="stschange" runat="server">
				<asp:listitem runat="server" Value="as" Text="Assolto" />
				<asp:listitem runat="server" Value="es" Text="Esonerato" />
				<asp:listitem runat="server" Value="ri" Text="Rivedibile" />
			</asp:radiobuttonlist>
ma non va
come posso fare?
Grassie