Tuesday, February 7, 2012

CrossPagePostBack in asp.net

protected void Page_Load(object sender, EventArgs e) {
    if (IsCrossPagePostBack) {
        Page prevPage = this.PreviousPage;
        string myValue1 = prevPage.FindControl("txttest1").ToString();
        string myValue2 = prevPage.FindControl("lblTest").ToString();
    }

}

No comments:

Post a Comment

Comments

Search

Custom Search
Protected by Copyscape Plagiarism Software