You just do:
HttpContext.Current.Response.Redirect("~/myPage.aspx")
Pay attention to 2 things:
1) you can use tilde (~) to indicate the root of the application
2) this (by default) will cause a thread interrupt exception. You can eliminate it by the olverload method with false .
HttpContext.Current.Response.Redirect("~/myPage.aspx",false)
3) you must add using System.Web;
source share