Thursday, August 6, 2009

Daily Tips- Tip #28 - How to access ViewState value of the previous page in the current page ?


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

No comments:

Post a Comment