0

Hi,

I'm having a problem when my friendly url path contains ".aspx". When the path contains ".aspx" all usage of "~/" is resolved incorrectly.


For example: When the friendly url is something like this: http://www.example.com/a/b/c/d.aspx
then the tilde "~" is resolved as "../../../" which is good.

BUT, when the friendly url is something like this: http://www.example.com/a/b/c.aspx/d.aspx
then the tilde "~" is resolved as "../../" which is bad! should be "../../../".

I think the ResolveClientUrl which is used when resolving "~" thinks that "c.aspx" is the file and should stop resolving at this point instead of continuing to "d.aspx"

Any suggestions? Thanks.

4
Contributors
6
Replies
11
Views
8 Years
Discussion Span
Last Post by balajijadhav
0

Thanks for the replies.

I'm not looking to use an alternative to the ~, I want to understand why ~ is not working properly. Something is broken.

I did some testing and i found that ResolveClientUrl does not resolve properly. I think the problem is there.

Thanks.

0

Thanks for the replies.

I'm not looking to use an alternative to the ~, I want to understand why ~ is not working properly. Something is broken.

I did some testing and i found that ResolveClientUrl does not resolve properly. I think the problem is there.

Thanks.

adatapost>It's working with server control. Can you post a segement of your code?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.