simpleMel
07-16-2009, 09:48 AM
Hi
how do i pass the label lblSession to Webform1 from Webform2 so that the session can work?
Hello
How do i pass lblSession.Text to Webform1 in a querystring
and how do i retrieve the label?
Webform2
if (Session["Dept"].ToString() == "GM")
{
Response.Redirect("~/Webform1.aspx?ButtonType=SPCL" &" Server.UrlEncode(lblSession.Text.Trim())");
}
else if (Session["Dept"].ToString() == "HR")
{
Response.Redirect("~/Webform1.aspx?ButtonType=SPCL" &" Server.UrlEncode(lblSession.Text.Trim())");
}
Webform1
if (Request.QueryString["ButtonType"].ToString() == "BTN" && Request.QueryString["DeptSession"].ToString() == "GM")
{
Session["Dept"] = "GM";
MultiView1.ActiveViewIndex = 0;
}
how do i pass the label lblSession to Webform1 from Webform2 so that the session can work?
Hello
How do i pass lblSession.Text to Webform1 in a querystring
and how do i retrieve the label?
Webform2
if (Session["Dept"].ToString() == "GM")
{
Response.Redirect("~/Webform1.aspx?ButtonType=SPCL" &" Server.UrlEncode(lblSession.Text.Trim())");
}
else if (Session["Dept"].ToString() == "HR")
{
Response.Redirect("~/Webform1.aspx?ButtonType=SPCL" &" Server.UrlEncode(lblSession.Text.Trim())");
}
Webform1
if (Request.QueryString["ButtonType"].ToString() == "BTN" && Request.QueryString["DeptSession"].ToString() == "GM")
{
Session["Dept"] = "GM";
MultiView1.ActiveViewIndex = 0;
}