I have some text boxes. Users are required to key in data in the text boxes. When they finished, they will click on submit button. Then, it will be directed to “review.aspx” page. In the review.aspx page, the page will display the data inserted by them in previous page in label. Anyone here knows how to do it? Thanks.
This is where I stop
protected void Button2_Click(object sender, EventArgs e)
{
Session["brand"] = DropDownList1.SelectedItem.Text;
Session["model"] = TextBox1.Text;
Session["plate"] = TextBox2.Text;
Session["color"] = TextBox3.Text;
Session["year"] = TextBox4.Text;
Session["service"] = TextBox5.Text;
Response.Redirect "Review.aspx";
How to catch the session to be displayed in review page. I used label to display it.
Convert the session[“ID”] object to string in following way:
and Set the value in respective label: