You can store them in ViewState so they survive postbacks:
In Page_Load:
Code:
i = 10
ViewState("MyVar") = i
Then in Button1_Click:
Code:
If Not ViewState("MyVar") Is Nothing Then
i = Convert.ToIn16(ViewState("MyVar"))
End If
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.