0

Is it possible to specify the Url value Programatically and then to navigate to the page accordingly?

string url = http://localhost:4039/LRVisuals/Default.aspx;
Url.AbsolutePath = url;
Arianule
  • 8,811
  • 45
  • 116
  • 174

1 Answers1

1

You can use Response.Redirect or Server.Transfer to navigate to a page.

Response.Redirect(url);

You'll find differences between both here. With Server.Transfer Page.PreviousPage is not null and you're able to access controls or ViewState of it.

Community
  • 1
  • 1
Tim Schmelter
  • 450,073
  • 74
  • 686
  • 939