source.aspx.cs protected void buttonPass_Click(object sender, EventArgs e) { Session["assno"] = TextBox4.Text; Response.Redirect("Destination.aspx"); Session["jobno"] = TextBox6.Text; Response.Redirect("Destination.aspx"); Session["date"] = TextBox8.Text; Response.Redirect("Destination.aspx"); }
source.aspx.cs protected void buttonPass_Click(object sender, EventArgs e) { Session["assno"] = TextBox4.Text; Response.Redirect("Destination.aspx"); Session["jobno"] = TextBox6.Text; Response.Redirect("
Destination.aspx
"); Session["date"] = TextBox8.Text; Response.Redirect("
"); }
destination.aspx.cs protected void Page_Load(object sender, EventArgs e) { string assno = ""; string jobno = ""; string date = ""; if (Session["assno"] != null) assno = Session["assno"].ToString(); txtassign.Text = assno; if (Session["assno"] != null) assno = Session["assno"].ToString(); txtassignNo.Text = assno; if (Session["jobno"] != null) jobno = Session["jobno"].ToString(); jobno.Text = jobno;}
destination.aspx.cs
protected void Page_Load(object sender, EventArgs e) { string assno = ""; string jobno = ""; string date = ""; if (Session["assno"] != null) assno = Session["assno"].ToString(); txtassign.Text = assno;
if (Session["assno"] != null) assno = Session["assno"].ToString(); txtassignNo.Text = assno; if (Session["jobno"] != null) jobno = Session["jobno"].ToString(); jobno.Text = jobno;
if (Session["assno"] != null) assno = Session["assno"].ToString(); txtassignNo.Text = assno;
if (Session["jobno"] != null) jobno = Session["jobno"].ToString(); jobno.Text = jobno;
}