I am using httpModule to rewrite urls. I am facing problem with serverControls links and imageUrl's for example. http://localhost/appl/tabid__216/default.aspx rewritten to http://localhost/appl/default.aspx?tabid=216 is pointing to http://localhost/appl/tabid__216/image/someImage.gif
Same thing happens with NavigateUrl and any place you use "~/" to define root path, I was under impression that when we use "~/" it would always point to root of server but it seems that under cover it maps path of current page and renders src attribute. I
would appreciate if somebody can find work around to this problem so that I do not have to change all existing links. Jigar
Jigar Desai -----------------------
Do not forget to "Mark as Answer" on the post that helped you.
I think i have to rephrase my question. My point is when you rewrite Url using http module "~/" no longer points to root of application. What i wanted to know was why this thing is happning? and are there any posibility so that not have to change all urls from
my existing application? Jigar
Jigar Desai -----------------------
Do not forget to "Mark as Answer" on the post that helped you.
Jigar
Contributor
4629 Points
935 Posts
Rewrite and Links with server controls.
Nov 05, 2003 01:44 PM|LINK
-----------------------
Do not forget to "Mark as Answer" on the post that helped you.
MHP
Participant
1375 Points
275 Posts
Re: Rewrite and Links with server controls.
Nov 05, 2003 02:51 PM|LINK
PaulWilson
Contributor
3715 Points
745 Posts
ASPInsiders
Re: Rewrite and Links with server controls.
Nov 05, 2003 05:04 PM|LINK
For the best .NET code, examples, and tools, visit:
WilsonDotNet.com, WilsonWebPortal.com, ORMapper.net
Jigar
Contributor
4629 Points
935 Posts
"~/" no longer points to root of application.
Nov 05, 2003 08:21 PM|LINK
-----------------------
Do not forget to "Mark as Answer" on the post that helped you.