P
Polaris431
In code, you can type the following:
this.Response.Redirect("~/index.aspx");
Is there anything in ASP.NET that you can use in place of strings when
referring to URLs? It would be nice to refer to URLs in a strongly
typed fashion. Something like:
this.Response.Redirect(URLs.Index_ASPX);
The point of this is that if a URL gets changed to a different
location or even renamed, the URL in a a Redirect (or for any other
object for that matter) would be automatically updated to refer to the
new name / location.
I doubt that this exists but it would be nice if it did.
Thanks
Polaris
this.Response.Redirect("~/index.aspx");
Is there anything in ASP.NET that you can use in place of strings when
referring to URLs? It would be nice to refer to URLs in a strongly
typed fashion. Something like:
this.Response.Redirect(URLs.Index_ASPX);
The point of this is that if a URL gets changed to a different
location or even renamed, the URL in a a Redirect (or for any other
object for that matter) would be automatically updated to refer to the
new name / location.
I doubt that this exists but it would be nice if it did.
Thanks
Polaris