T
tsteinke
Okay here is the situation I am developing a ASP.Net application
locally and then I copy the project up to my web server.
I start out by creating an ASP.NET Application
http://localhost/WebApplication
that contains a folder
http://localhost/WebApplication/images
In my app I have a root relative referfer to an image
"/images/pic.gif"
(I need it to be root relative because the link is in a control that
can either be referenced by a form in the root or a subfolder, the form
has be be in a subfolder because I am using FormsAuthorization, if
there is a way to avoid this all together I would love to hear it)
Now the root relative path actually points to
http://localhost/images
not
http://localhost/WebApplication/images
which is incorrect until I copy it to the server when it points to
http://www.mysite.com/images
How the heck is this supposed to ever work?!
I assume that is why they made the "~" for Application relative paths
in ASP.NET of course then I have to turn all my html elements into
server controls, I'm still not sure if I can do it with things like the
background images of cells. And to top it off they show up as broken
links in the designer while I'm developing.
Please someone tell me they fixed this in VS2005
locally and then I copy the project up to my web server.
I start out by creating an ASP.NET Application
http://localhost/WebApplication
that contains a folder
http://localhost/WebApplication/images
In my app I have a root relative referfer to an image
"/images/pic.gif"
(I need it to be root relative because the link is in a control that
can either be referenced by a form in the root or a subfolder, the form
has be be in a subfolder because I am using FormsAuthorization, if
there is a way to avoid this all together I would love to hear it)
Now the root relative path actually points to
http://localhost/images
not
http://localhost/WebApplication/images
which is incorrect until I copy it to the server when it points to
http://www.mysite.com/images
How the heck is this supposed to ever work?!
I assume that is why they made the "~" for Application relative paths
in ASP.NET of course then I have to turn all my html elements into
server controls, I'm still not sure if I can do it with things like the
background images of cells. And to top it off they show up as broken
links in the designer while I'm developing.
Please someone tell me they fixed this in VS2005