Ciao, ho scritto questa pagina
<%@ Page Language="vb"%>
<script runat="server">
dim a, b, c
Sub page_load(obj as object, e as eventargs)
a = 10
b = 11
c = 12
end sub
sub moddi(obj as object, e as eventargs)
if obj.id = "aa"
a = 20
databind
end if
if obj.id = "bb"
b = 40
databind()
end if
end sub
</script>
<html>
<head>
<title>| BeaZZy |</title>
</head>
<body>
<form runat=server>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="3" colspan="3" height="9">
<asp:label text=<%# a %> runat=server />a
<asp:label text=<%# b %> runat=server />b
<asp:label text=<%# c %> runat=server />c
<asp:button id="aa" text="1" onclick="moddi" runat=server />
<asp:button id="bb" text="2" onclick="moddi" runat=server />
<asp:button id="cc" text="3" runat=server /></td>
</tr>
</table>
</form>
</body>
</html>
-------------
se faccio click su AA, a assume come valore 20. Se faccio click su BB, b assume come valore 40. Come faccio però, se faccio click prima su AA e poi su BB a farmi visualizzare BB = 40 e AA = 20. Se faccio click su BB, dopo aver cliccato su AA, a torna a 10, che è il valore di origine. COme faccio a modificare questa cosa???
Grazie e ciao