Reputation: 851
I have two aspx pages, the first that has 5 links. All 5 links use Server.transfer("page_x.aspx");
My problem is once the transfer is complete I'm left with my original 5 links plus the new data. How can I clear the original page's content and then load the new data from the link that was clicked? I tried using Controls.Clear();
and then issuing a Server.transfer
but that did not work.
Upvotes: 3
Views: 431
Reputation: 176896
You can make use of Response.Redirect("page_x.aspx");
This transfers control to new page and there is no need to do any extra work for this.
Upvotes: 6