hello, you have to use IsPostBack checking in your page_load method.
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
string amt = Page.Request.Form["nm"];
HiddenField1.Value = amt;
string org= base64Decode(amt);
Page.ClientScript.RegisterStartupScript(this.GetType(),"alert","myfunction();",true);
string strs=HiddenField1.Value;
}
}
like this. because, when you go to the server side with post back then your client side code reset and for that you are loosing your data.
thanks
Rashed:: Bangladesh.