il concetto è molto sinteticamente questo:


<script runat="server">

sub go1 (obj as object, e as eventargs)
dim a as string=testo.text
if (a="si") then
go2()
end if
end sub

sub go2 (obj as object, e as eventargs)
dim a as string=testo.text
if (a="si") then
go3()
end if
end sub
ecc....


</script>
<form runat="server">

<asp:textbox runat="server" ID="testo"/>
<asp:button runat="server" ID="vai" OnClick="go1"/>

</form>
Come vedi dentro ogni sub io dichiaro nuovamente a

allora la mia domanda è questa


SI PUO' DICHIARARE UNA VARIABILE CHE AUTOMATICAMENTE VENGA VISTA DA TUTTE LE SUB??



grazie