Hi,
I am opening a pop up page at link button click.. user can input data which i am saving in hidden fields. I want to access these hidden fields in another asp.net page. How can i do that please help.
Loading
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.
Prabhu RajaPosted Nov 16, 2011, 6:15 AM
Refer this :
http://msdn.microsoft.com/en-us/library/ms178139.aspx
http://aspdotnetfaq.com/Faq/How-to-make-Cross-Page-Postback-in-ASP-Net.aspx
Nethra R SPosted Nov 16, 2011, 5:48 AM
Is it possible without using session or query strings. I mean without the viewstates
Prabhu RajaPosted Nov 16, 2011, 5:37 AM
Hidden fields are useful only between multiple postbacks of same asp.net page. If you want the values in another page, use Sessions.
Store Values in Session as:
Session["Value1"] = this.textbox1.text;
retrieve values from Session as :
String Value = Session["Value1"].ToString();
Try Session instead of Hidden Fields.
Kunal NaikPosted Nov 16, 2011, 5:22 AM
please refer this link,
Click Here
Nethra R SPosted Nov 15, 2011, 10:58 PM
Suthish NairPosted Oct 11, 2011, 2:27 PM
Prabhu RajaPosted Oct 10, 2011, 4:21 AM
string MyVal = Request.Form["FieldName"]; // You hidden Field name inside of Double Quotes