> I've seen this all over:
>
> Page.LoadControl("~/DesktopModules/SignIn.ascx")
>
> What does the "~" do?
It's a short-cut to the virtual root for that application. Very
convenient to create directory-independent references to pages, images,
etc. You can also use it in server-side controls, like:
<asp:Image ImageUrl="~/images/foo.bmp"/>
Syntactically, it comes from the unix root directory shorthand.
-Fritz
Fritz Onion
DevelopMentor
http://staff.develop.com/onion
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.