Daily Tips- Tip #30 - 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

Note: Only a member of this blog may post a comment.

Blog Widget by LinkWithin