Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top