Hi I have here a simple representation of the page I want to do.

I want to get the hidden field values of page2.aspx and pass it to the label of page1.aspx using c#.
Can you guys help me tnx :)
Hi I have here a simple representation of the page I want to do.

Can you guys help me tnx :)
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 attend4days leftRegister
ali tuncerRank #1,499 · 1.1K reputationPosted Mar 22, 2016, 6:10 AM EDT
https://msdn.microsoft.com/tr-tr/library/6c3yckfw(v=vs.100).aspx
Francis SusaimichaelRank #466 · 5.4K reputationPosted Mar 22, 2016, 7:43 AM EDT
Try this:
webform2.aspx
{
protected void Page_Load(object sender, EventArgs e)
{
// Fill hidden values with values
hdnFirst.Value = "10";
hdnSecond.Value = "20";
Session["First"] = hdnFirst.Value;
Session["Second"] = hdnSecond.Value;
Response.Redirect("WebForm1.aspx");
}
}
{
protected void Page_Load(object sender, EventArgs e)
{
lblFirst.Text = Convert.ToString(Session["First"]);
lblSecond.Text = Convert.ToString(Session["Second"]);
}
}
Chandu KumawatRank #1,449 · 1.1K reputationPosted Mar 22, 2016, 9:08 PM EDT