We help IT Professionals succeed at work.

ASP.NET Href not going to subfolders

dmat1
dmat1 asked
on
1,154 Views
Last Modified: 2013-11-26
I am working on a web site using a master page using Visual Web Studio 2008. I have the project in a folder MyDocuments/visual studio 2008/master page/. I have put diferent sections of the site in different folders. you can see the different folders I am using in the solution explorer. I have two problems.

The first one is that when I do an Href and select the link from the list of files in the project and when I run the project the links dont work properly. I get a page not found. I have tried these 3 combinations  "forums/default.asp", "/forums/default.asp" and "~/forums/default.asp". None of them seem to work.

Secondly, when I try to include an image in one of the pages I want to put the images in the images folder but I get broken images. I have a feeling the solution to my above problem will also solve this problem.

The solution I would like to find is the one that will allow me to upload the site from my system and have everything work fine. I have tried Running IIS for my project but I get a configuration error os some sort. All I have done to set up IIS is point to the home directory of my project. This has worked in the past for me with regular ASP. Is there a guide somewhere to configuring IIS to run an ASP.NET project?
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Forced accept.

Computer101
EE Admin

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.