PreviousPage property is set to the page property of the next page to access the viewstate value of the page in the next page. Page poster = this.PreviousPage; Once that is done, a control can be found from the previous page and its state can be read. Label posterLabel = poster.findControl("myLabel"); string lbl = posterLabel.Text;
Liked By
Write Answer
Explain how to access ViewState value of this page in the next page.
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
24-Aug-2011Page poster = this.PreviousPage;
Once that is done, a control can be found from the previous page and its state can be read.
Label posterLabel = poster.findControl("myLabel");
string lbl = posterLabel.Text;