You need to check for
IsPostBack
in your
Page_Load
code:
protected void Page_Load(object sender, EventArgs e)
{
if(!this.IsPostBack)
{
long i = 1;
foreach (byte b in Guid.NewGuid().ToByteArray())
{
i *= ((int)b + 1);
}
TextBox1.Text = string.Format("{0:x}", i - DateTime.Now.Ticks);
}
}