How to access Viewstate values of this page in the next page?
PreviousPage property is set to the page property of the nest page to access the viewstate value of the page in the next page.
PreviousPage property is set to the page property of the nest page to access the viewstate value of the page in the next page.
Once that is done, a control can be found from the previous page and its state can be read.
Page poster =
this
.PreviousPage;
Label posterLabel = poster.findControl(
"myLabel"
);
string
lbl = posterLabel.Text;
Very effectively written. Thanks for this service that you have provided for us to have the ability to fresh our minds.
ReplyDelete