Response.Redirect resolves "~" root path reference.

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 @ Friday, August 19, 2005 8:39 AM

Print

Comments on this entry:

# re: Response.Redirect resolves "~" root path reference.

Left by Michael Freidgeim at 1/4/2006 1:38 PM
Gravatar
However ClientScriptManager.RegisterClientScriptInclude Method doesn't resolve "~" when it passed in URL parameter.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345