views:

38

answers:

2

I've found what seems like a bizarre problem with IIS 6.0 and .NET 3.5. I always use the tilde for all URLs (eg: ~/mypage.aspx) so if I go to mydomain.com/mypage.aspx, everything works fine. If, however, I add a trailing slash and go to mydomain.com/mypage.aspx/, all links on the page which use the tilde get rendered as mydomain.com/mypage.aspx/otherpage.aspx instead of mydomain.com/otherpage.aspx.

This happens with all controls.

Has anyone had this issue before?

+3  A: 

You are not supposed to put a slash at the end of the page name. Why do you put that slash? The slash means a folder in the application.

Kangkan
It was reported by a client, not something I'd ever have though of or tried. As long as I'm not missing anything.
Echilon
+3  A: 

mydomain.com/mypage.aspx/ is a wrong URL. By this URL it will look for mypage.aspx sub-directory. And I think it is working as expected.

Ismail