Correct way to do a Response.Redirect from one page to another on the same site

前端 未结 3 545
清歌不尽
清歌不尽 2020-12-31 22:04

I\'m sure this has been asked time and time again. And yes I\'ve searched. However, I\'m unable to find an example that clearly demonstrates what I\'m looking to accomplis

3条回答
  •  醉梦人生
    2020-12-31 22:26

    Use application relative urls. ~/ represents the application root path, so it will work for both / and /virtual-directory/.

    Response.Redirect("~/testing.aspx");
    

提交回复
热议问题