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.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
lokesh muppanaPosted Nov 27, 2009, 1:47 AM
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 muppanaPosted Nov 27, 2009, 1:47 AM
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"];
Nilanka DharmadasaPosted Nov 26, 2009, 1:06 AM
If the data is confidential, then you can use session variables. Otherwise, you can use query string.
Whuch method do you prefer?
Lalit MPosted Nov 26, 2009, 1:03 AM