hello, you have to use IsPostBack checking in your page_load method.
protected void Page_Load(object sender, EventArgs e)
string amt = Page.Request.Form["nm"];
HiddenField1.Value = amt;
string org= base64Decode(amt);
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.