Thursday, 17 November 2005

Work With Relative Paths

I was reviewing some ASP.NET 1.1 code last night using Visual Studio 2005, making use of the Code Analysis (fxCop) tools that are built in.

I noticed some of the .aspx pages had hyperlinks with a leading tilde (~), which I'd never noticed before.

Turns out, this make the link relative to the application root, which is something that I suspect I could have made use of before now.

While not documented for 1.1, it is in the ASP.NET 2.0 documentation now, as well as referenced in quite a few articles on the web.

No comments: