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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prabhu RajaRank #861 · 2.6K reputationPosted Oct 10, 2011, 12:21 AM EDT
string MyVal = Request.Form["FieldName"]; // You hidden Field name inside of Double Quotes
Suthish NairRank #92 · 22.8K reputationPosted Oct 11, 2011, 10:27 AM EDT
Nethra R SRank #6,347 · 269 reputationPosted Nov 15, 2011, 5:58 PM EST
Kunal Naik163 reputationPosted Nov 16, 2011, 12:22 AM EST
please refer this link,
Click Here
Prabhu RajaRank #861 · 2.6K reputationPosted Nov 16, 2011, 12:37 AM EST
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.
Nethra R SRank #6,347 · 269 reputationPosted Nov 16, 2011, 12:48 AM EST
Is it possible without using session or query strings. I mean without the viewstates
Prabhu RajaRank #861 · 2.6K reputationPosted Nov 16, 2011, 1:15 AM EST
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