ASP.Net 2.0 project root question

G

Guest

I have a question regarding the asp.net project setup. I created a very
simple project located here:

c:\web sites\test\

When it runs it runs here:

http://localhost:1315/test/Default.aspx

In Default.aspx if I put a link that refers to "~/login.aspx" or
"/login.aspx" it doesn't work because they all seem to point to
"http://localhost:1315/login.aspx".
So, I am forced to use relative links all the time. I would expect if my
project is in a folder to have that folder be the root of the web application
but that is not the case.

What am I doing wrong?

Thank you,
 
E

Erik Funkenbusch

I would expect if my
project is in a folder to have that folder be the root of the web application
but that is not the case.

What am I doing wrong?

This would only be the case if you created an Application root in the
folder. Right Click on the folder in IIS Manager, and look for the
Directory tab, and in the Application Settions section click Create.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top