473,395 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ASP.Net 2.0 project root question

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,
--
Regards,

Iulian
Mar 24 '06 #1
3 1095
On Thu, 23 Mar 2006 16:32:01 -0800, Iulian wrote:
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.
Mar 24 '06 #2
Look at this: http://weblogs.asp.net/scottgu/archi...21/431138.aspx
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Iulian" <Iu****@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
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,
--
Regards,

Iulian

Mar 25 '06 #3
Beautiful! Exactly what I was looking for!

Thank you!

--
Regards,

Iulian
"Christopher Reed" wrote:
Look at this: http://weblogs.asp.net/scottgu/archi...21/431138.aspx
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Iulian" <Iu****@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
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,
--
Regards,

Iulian


Mar 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Vagif Abilov | last post by:
We decided to adopt .NET coding guidelines posted by Brad Abrams from Microsoft: http://blogs.msdn.com/brada/archive/2005/01/26/361369.aspx Here is what Brad (and AFAIK Microsoft) suggests...
8
by: Adam Clauss | last post by:
I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way to get them all added to the solution. Preferable would be that the...
1
by: Bill Reynen | last post by:
Hello, Working in ASP.NET. I want to create several projects on the web server /Online /Online/App1 /Online/App2 /Online/App3
2
by: Timbit | last post by:
Hi, this is probably an old question, and I have had no luck finding answers to this one on the internet that has helped me out. I installed VS .NET 2003, then I installed IIS 5.1 after that. I...
1
by: Vladimír Kolesnik | last post by:
Hi, there we need help concerning setting project under source control. We want to have a project on the server, and developers in the local network working on this project. We decided to use...
1
by: EO | last post by:
I have an existing site with 1,500+ .htm pages to convert to .net. Problem: The entire (non .net) site is currently at the root level of the web for both development and production. However,...
3
by: Johnny | last post by:
Hi, I have created an ASP.NET application (let's call it FooBar) with VS.NET on my local machine, residing in http://localhost/FooBar. Deploying it to another folder on my machine works well...
4
by: Brad | last post by:
I'm not one to rant or flame....so please excuse me while I do so for this once. I've now spent a bit of time working with VS2005 beta 2 to see how it functions for web development, especially how...
0
by: ping235 | last post by:
Recently, i am busying myself on a project that support both the Full ..NET Framework 2.0 and .NET Compact Framework 2.0, with the same set of c# code, but have different project properties and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.