The ~/ syntax has nothing to do with IIS. Rather, it is used by many
routines within ASP.NET.
In your example, you're not using the runat="server" attribute and so it is
never even evaluated by ASP.NET. It simply is transferred to the client
unchanged.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
<st*********@gmail.comwrote in message
news:57**********************************@q27g2000 prf.googlegroups.com...
Say for example, in my Master page, I have something like this.
<a href="/Content/Profile.aspx" class="NavMenu">
It works, but if I put a ~ in front.
<a href="~/Content/Profile.aspx" class="NavMenu">, it will appear as:
http://localhost:1234/~/Content/Profile.aspx
And IIS complain that this page cannot be found.
Did I made any mistakes or I have to tell IIS where is my *home*
directory is?
Thanks in advance.
On Jun 10, 11:12 am, Michael Nemtsev [MVP] <nemt...@msn.comwrote:
Hello CKKwan,
Could you demonstrate the sample of what exactly doesnt work?!