B
Boban Dragojlovic
ASP.NET creates every website as a new "project" off the default (localhost)
web site.
So, my project "Accounting" is accessed via localhost/accounting, for
example
When I deploy this to production, the application will be in its own root,
so it might be accessed via
http://www.accounting.com (or something like that).
Within my application, I at times need URLs to web forms that I know to be
in certain subfolders off the root folder.
In other words, I might need:
href="/admin/special.aspx"
Though this works in production, it doesn't work in development, since I'm
not at the "root" of the website. In development, I would need
href="/accounting/admin/special.aspx"
Sometimes I'm making this reference from another webform which is itself
nested one or two levels within the application, so I don't want to create
gnarly parent paths like
href="./../../admin/special.aspx"
since that will cause me problems when I move the current document around.
I'd rather just provide paths off the root.
Is there a symbol or something that signifies the "root" of the current
application, as opposed to the root of the website.
How do people traditionally deal with this problem?
web site.
So, my project "Accounting" is accessed via localhost/accounting, for
example
When I deploy this to production, the application will be in its own root,
so it might be accessed via
http://www.accounting.com (or something like that).
Within my application, I at times need URLs to web forms that I know to be
in certain subfolders off the root folder.
In other words, I might need:
href="/admin/special.aspx"
Though this works in production, it doesn't work in development, since I'm
not at the "root" of the website. In development, I would need
href="/accounting/admin/special.aspx"
Sometimes I'm making this reference from another webform which is itself
nested one or two levels within the application, so I don't want to create
gnarly parent paths like
href="./../../admin/special.aspx"
since that will cause me problems when I move the current document around.
I'd rather just provide paths off the root.
Is there a symbol or something that signifies the "root" of the current
application, as opposed to the root of the website.
How do people traditionally deal with this problem?