How to access ViewState value of the previous page in the current page ?

Thursday, August 6, 2009


Previous page's information is stored in a property called PreviousPage and you can access it using the following code,
Page prePage = this.PreviousPage;
Label totalEmployees = prePage.FindControl("lblTotEmployees");
Response.Write(totalEmployees.Text);


www.codecollege.NET

0 comments

Post a Comment

www.codecollege.NET

Blog Widget by LinkWithin