Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com
Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com

I like to use ~ to refer to relative to root url paths.It's well described in article “Understanding Paths in ASP.NEThttp://www.informit.com/articles/article.asp?p=101145&seqNum=2  . But I thought that it is always required to call ResolveUrl to make tilde (“~”) working.

However, I found that Response.Redirect does the URL relative resolution anyway and instead of calling

 Response.Redirect(ResolveURL("~/Prva.aspx"))

it can be called just

 Response.Redirect("~/Prva.aspx")


 

Posted on Friday, August 19, 2005 8:39 AM ASP.NET | Back to top


Comments on this post: Response.Redirect resolves "~" root path reference.

# re: Response.Redirect resolves "~" root path reference.
Requesting Gravatar...
However ClientScriptManager.RegisterClientScriptInclude Method doesn't resolve "~" when it passed in URL parameter.
Left by Michael Freidgeim on Jan 04, 2006 1:38 PM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net