B
Brien King
Ok,
I'm converting a 1.1 ASP.NET app to 2.0 and I am using the VS2005 Web Server
to debug. The problem is that when I use a relative path in my links, it
generates the wrong links.
if I have
http://localhost:666/WebApp/index.aspx
Then in my code I do a
myLink.NavigateURL = "/index.aspx?blah=1"
it generates the following link
http://localhost:666/index.aspx?blah=1
rather then:
http://localhost:666/WebApp/index.aspx?blah=1
How do I get around this? I do not want to hard code the full path as this
would require a lot of changes and would defeat the purpose of having
relative paths. Adding a ~ in front does not help.
Thanks,
Brien King
(e-mail address removed)
I'm converting a 1.1 ASP.NET app to 2.0 and I am using the VS2005 Web Server
to debug. The problem is that when I use a relative path in my links, it
generates the wrong links.
if I have
http://localhost:666/WebApp/index.aspx
Then in my code I do a
myLink.NavigateURL = "/index.aspx?blah=1"
it generates the following link
http://localhost:666/index.aspx?blah=1
rather then:
http://localhost:666/WebApp/index.aspx?blah=1
How do I get around this? I do not want to hard code the full path as this
would require a lot of changes and would defeat the purpose of having
relative paths. Adding a ~ in front does not help.
Thanks,
Brien King
(e-mail address removed)