I'm yet to see
ASP.NET code which does not use '~' mapping feature in Server.MapPath. We all
love this feature, except... wait a minute... it is not documented?!
Search on MSDN failed to uncover any statement stating that '~' in MapPath
function refers to a virtual root (the task was not made any easier by the fact
that tilde is ignored in a search). Could it be that we're all typing megalines
of code against undocumented feature? And what, apart from bazillions of angered
developers around the world, will stop ASP.NET team from changing it
in 2.0 from '~' to, say '$', 'œ', '¥' or '½', for this matter
:-).
Now, here is the
georged™
challenge: the first person who points me to a piece of documentation explaining
usage of a tilde character in MapPath is entitled to AUS $25 (about US$17 and rising).
Money will be transferred to a PayPal
account or similar.
Rules:
- It must be
official documentation, i.e. references to samples, user groups,
magazine articles, blogs, etc will not be considered.
- 'First' will be
judged by UTC time of the reply/post/email.
- I decide who's
first and whether pointer/answer is correct.
- if(you.disagree)
goto 3;
- Ah, what the heck,
Microsoft employees are also eligible to enter :-)
Anyone?
Cheers
Georged