top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Explain how to access Viewstate values of this page in the next page?

0 votes
126 views
Explain how to access Viewstate values of this page in the next page?
posted Sep 1, 2016 by Sathaybama

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

-PreviousPage property is set to the page property of the nest page to get the value of viewstate for the page in the next page.

Page employee = this.PreviousPage;

-Then a control can be found from the previous page and its state can be read.

Label employeeLabel = poster.findControl("empLabel");
string lbl = employeeLabel.Text;
answer Sep 1, 2016 by Shivaranjini
...