Problem in Button click information from one form to another form in ASP.NET
I am not able to button click information from One ASPx form to ASPx form,Kindly solve this problem.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Nov 25, 2009, 8:03 PM EST
Nilanka DharmadasaRank #1,875 · 794 reputationPosted Nov 25, 2009, 8:06 PM EST
If the data is confidential, then you can use session variables. Otherwise, you can use query string.
Whuch method do you prefer?
lokesh muppana30 reputationPosted Nov 26, 2009, 8:47 PM EST
First set button properties :
usesubmitBehaviour equal to true
1)ResPonse.Redirect("second.aspx");
2) To accessing Id from one page aspx to another page aspx:
And then,In first aspx page write code like this:
string Id="some value ";
Response.Redirect("second.aspx?Id="+Id) ;
Accessing Id in second.aspx
string strvalue = Request.QueryString["Id"];
lokesh muppana30 reputationPosted Nov 26, 2009, 8:47 PM EST
First set button properties :
usesubmitBehaviour equal to true
1)ResPonse.Redirect("second.aspx");
2) To accessing Id from one page aspx to another page aspx:
And then,In first aspx page write code like this:
string Id="some value ";
Response.Redirect("second.aspx?Id="+Id) ;
Accessing Id in second.aspx
string strvalue = Request.QueryString["Id"];