what is "~" function?
-
If PortalSecurity.IsInRoles("Admins") = False Then Response.Redirect("~/Admin/EditAccessDenied.aspx") End If what is the difference between the "~/Admin/EditAccessDenied.aspx" and "../Admin/EditAccessDenied.aspx" ? thanks for help.
-
If PortalSecurity.IsInRoles("Admins") = False Then Response.Redirect("~/Admin/EditAccessDenied.aspx") End If what is the difference between the "~/Admin/EditAccessDenied.aspx" and "../Admin/EditAccessDenied.aspx" ? thanks for help.
"~" represents the absolute path to the root of your web application, where ".." represents the directory above the current directory. They are, by no means, interchangable. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
skywen wrote: If PortalSecurity.IsInRoles("Admins") = False Then Response.Redirect("~/Admin/EditAccessDenied.aspx") End If It represents the root of the web application. Doug If memory serve's me right... - Chairman Kaga
-
"~" represents the absolute path to the root of your web application, where ".." represents the directory above the current directory. They are, by no means, interchangable. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome