I am sure it was asked again and again. And yes, I was looking. However, I cannot find an example that clearly demonstrates what I want to accomplish.
I'm on mywebsite/test.aspx , I want to redirect to mywebsite/testing.aspx . However, I want this redirection to work both on the server and inside the visual studio debugging. I tried
Response.Redirect(Request.RawUrl.Replace(Request.RawUrl,"testing.aspx"))
However, this replaces all of this.
Hope this makes sense - mywebsite/test.aspx should redirect to mywebsite/testing.aspx
user222427
source share