Problem with navigation on asp page

Hi, I have a web page that has become a problem child, ok, it’s not the page, it’s me. I took over the maintenance of a website and recently did a redesign for them. I have one page that is causing me a headache. This is a page on the employment tab that receives data from a asp form. The pages that correspond to this form and data are in a separate folder called “oaknoll” in the root folder. I am not a programmer so I really don’t know much about the asp form. But seems to me its just a link issue.

here is the link to the website: http://www.oaknoll.com

All the navigation links on the left work fine except one page. If you go to the “Employment” tab and click on the dropdown links, click on “current openings” the page opens fine. So far so good. But when you try to go back to any other pages, the browser shows the pages now saying “www.oaknoll.com/oaknoll/index.asp” I don’t know why the “oaknoll” folder keeps appearing in the nav links.

Here is the code for “current openings” page called “jobopenings.asp”:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- #include virtual="../includes/DSN.asp" -->

<%

Response.Expires = 0

function formatJobs (strIn)
	dim temp
	If strIn = "" or isnull (strIn) or isempty (strIn) Then
		temp = "- no current openings</p>"
	Else
		temp = "</p><p><blockquote>" & strIn & "</blockquote>"
	End If
	formatJobs = temp
end function

dim cn, rs, sql

'Open and verify connection to DB
set cn = server.CreateObject("ADODB.Connection")
cn.Open cnString("/data", "oaknoll.mdb")

sql = "SELECT * FROM jobopenings"
set rs = cn.Execute(sql)

%>


<html lang="en">
<head>
<title>Oaknoll - An Adult Retirement Community</title>
<meta name="Keywords"
 content="oaknoll, iowa city, retirement, elderly, iowa, LifeCare, retirement community, nursing home, apartment, independent living, resident, geriatric, aging, community, retire, retired, elder,  health care">
<meta name="Description"
 content="Oaknoll is an adult retirement community in Iowa City, Iowa.">
<meta name="Author" content="Heather Clark for Gazette Communications">
<meta name="robots" content="index,follow">


<!-- include Cycle plugin -->

<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<!-- include Cycle plugin -->
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	    	
			});


$('#s3').cycle({
    fx:    'fade',
    speed:  5500,
	cleartype: 1,
cleartypeNoBg: false,
height: 'auto',
containerResize: 0,

timeout: 8000,

sync: 0,

fadeOut:'slow',



nowrap: 0,
randomizeEffects: 0,
pause: 0
	
	
 });

});
</script>

		

<!--Vertical Slider Navigation javascript - code on external page-->

<script type="text/javascript" src="js/external_navigation_menu_javascript.js"></script>

 <!--endofVerticalSliderNavigationjavascript-->



<!--tocorrecttheunsightlyFlashofUnstyledContenthttp://www.bluerobot.com/web/css/fouc.asp-->
	<script type="text/javascript"> </script>
	

	

<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="ie6.css" />
<![endif]-->


<link rel="stylesheet" href="../css/oaknoll_newsite.css" type="text/css" />
<link rel="stylesheet" href="../css/nav_css.css" type="text/css" />
<link rel="stylesheet" href="../css/employment.css" type="text/css" />



</head>
<body>

<div id="container">

 <!--#include virtual="includes/header_asp.asp"-->
		



		<div id="main">


        <div id="box1">
       <div class="slideshow">
		<img src="../images/sls/nurse_station.jpg" width="400" height="300" alt="Nurses Station" class="first" />
		
	   </div> <!--end-of-slideshow-->
        </div><!--end-box-1-->

        <div id="box2">
   	  <div class="buttonbox"><img src="../images/4_special_buttons.jpg" alt="internet buttons" width="181" height="300" border="0" usemap="#Map" />
        <map name="Map" id="Map">
          <area shape="rect" coords="14,8,178,70" href="http://www.touchtown.tv/tv/tv/webshow/tv1.jsp?tag=OAKNOLL_WEB" target="_blank" alt="Link to Oaknoll Announcements" border="none" />
          <area shape="rect" coords="14,86,177,145" href="http://www.facebook.com/Oaknoll?ref=sgm" target="_blank" alt="Link to Oaknoll's Facebook Page" border="none"/>
          <area shape="rect" coords="16,161,172,213" href="http://oaknoll.blogspot.com/" target="_blank" alt="Link to the Oaknoll Blog" />
          <area shape="rect" coords="18,233,175,297" href="../hawkeye.asp" alt="Link to Golden Hawkeye Birthday Club" />
        </map>
   	  </div><!--BUTTONBOX-->
        </div><!--end-box-2-->




<br>

  <h1 style="clear:left;">Current Job Openings...</h1>

          <p><b><u>Opportunities in Nursing</u> </b><%= formatJobs(cstr(rs("nursing"))) %> </p>
          <p> <b><u>Opportunities in Food & Nutrition</u></b><%= formatJobs(cstr(rs("food"))) %> </p>
          <p><b><u>Opportunities in Recreation and Social Services</u></b><%= formatJobs(cstr(rs("recreation"))) %> </p>
          <p><b><u>Opportunities in Building and Grounds</u></b><%= formatJobs(cstr(rs("building"))) %> </p>
          <p><b><u>Opportunities in Housekeeping and Laundry</u></b><%= formatJobs(cstr(rs("housekeeping"))) %> </p>
         <p><b><u>Opportunities in Administration</u></b><%= formatJobs(cstr(rs("admin"))) %> </p>
		
		  <p> <b><i>To Apply:</i></b> <br />
            <br />
            <b><i> Click
            <a href="../pdf/Application_2012_for_website.pdf" target="_blank">here</a> for
            application.</i></b> </p>
		  <p align="left">            Print the application and mail the completed form to: </p>

          <table width="213" border="0" cellspacing="0" cellpadding="10" align="left">
            <tr>
              <td><p>Oaknoll Retirement Residence<br />
                  Attn: Human Resources<br />
                  1 Oaknoll Court<br />
                  Iowa City, Iowa 52246</p></td>
            </tr>
            <tr>
              <td><p>or fax your application to: <br />
                (319) 466-3023<br />
                Attn: Human Resources</p></td>
            </tr>
          </table>


  </div>


     <!--#include virtual="includes/menu_asp.asp"-->



	 <!--#include virtual="includes/footer_asp.asp"-->



  </div><!--end-of-main-->
</div><!--end-of-container-->

</div>
</body>
</html>



Here is the code for the navigation page which is attached as an include:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Oaknoll - An Adult Retirement Community</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords"
 content="oaknoll, iowa city, retirement, elderly, iowa, LifeCare, retirement community, nursing home, apartment, independent living, resident, geriatric, aging, community, retire, retired, elder,  health care, assisted living, nursing care">
<meta name="Description"
 content="Oaknoll is an adult retirement community in Iowa City, Iowa.">
<meta name="robots" content="index,follow">
</head>

<body>





         <div id="navcap">
          <img src="../images/navigation-cap.gif" width="200" height="18" alt="navigation cap" />
         </div><!--end-navcap-->

 <div id="nav">

	<dt> <a href="../index.asp"><b>Home</b></a> </dt>

	


    <dt><b>LifeCare</b></dt>

	<dd>
		<ul>
			<li><a href="../independent_living.asp">Independent Living</a></li>
			<li><a href="../assisted.asp">Assisted Living</a></li>
			<li><a href="../health_center.asp">Health Center</a></li>
			
			

		</ul>
	</dd>
	<dt><b>Health Services</b></dt>
	<dd>
		<ul>
			<li><a href="social_services.asp">Social Services</a></li>
	        <li><a href="health_services.asp">Health Services</a></li>
			<li><a href="physical_therapy.asp">Physical Therapy</a></li>
            <li><a href="dietician.asp">Dietician</a></li>
          <li><a href="companions.asp">Companions</a></li>
		</ul>
	</dd>
	
    <dt><b>Amenities</b></dt>
	<dd>
		<ul>
			<li><a href="dining.asp">Dining Services</a></li>
			<li><a href="transportation.asp">Transportation</a></li>
			<li><a href="theater.asp">Movie Theater</a></li>
			<li><a href="internet_cafe.asp">Internet Cafe/Coffee Shop</a></li>
			<li><a href="game_rooms.asp">Game Rooms</a></li>
            <li><a href="libraries.asp">Library</a></li>
            <li><a href="sewing.asp">Sewing Room</a></li>

	  </ul>

	</dd>
	<dt><b>Recreation/Wellness</b></dt>
	<dd>
		<ul>
			<li><a href="wellness.asp">Wellness</a></li>
            <li><a href="programs.asp">Programs</a></li>
			<li><a href="pool.asp">Pool/Spa</a></li>
			<li><a href="salon.asp">Salon</a></li>
      </ul>
	</dd>
	
    <dt><b>About Oaknoll</b></dt>
	<dd>
		<ul>
			<li><a href="history.asp">History</a></li>
            <li><a href="resident_council.asp">Oaknoll Resident Council</a></li>
            <li><a href="board_of_directors.asp">Board of Directors</a></li>
            <li><a href="foundation_board.asp">Foundation Board</a></li>
	  </ul>
	</dd>




<dt><b>Services</b></dt>
	<dd>
		<ul>
			<li><a href="maintenance.asp">Maintenance</a></li>
			<li><a href="housekeeping.asp">Housekeeping</a></li>
			<li><a href="laundry.asp">Laundry</a></li>
			<li><a href="technology.asp">Technology</a></li>
            <li><a href="banking.asp">Banking</a></li>
		</ul>
   </dd>




    <dt><b>Employment</b></dt>

	<dd>
		<ul>
        <li><a href="employment.asp">Employment</a></li>
			<li><a href="../oaknoll/jobopenings.asp">Current Openings</a></li>
			<li><a href="pdf/Application_2012_for_website.pdf" target="blank">Application</a></li>
		</ul>
	</dd>


<dt><a href="contact.asp"><b>Contact Us</b></a></dt>


 </div>

  <div id="ldirector">
	  <a href="executive_director.asp"><p>Patricia Heiden ~ <br />
            A Director With a Dream. <br/><br/>
            Click here to learn more...</p></a>
</div> <!--director-end-->


<div id="ladministrator">
<a href="administrator.asp"><p>Meet <br/>
Steve Roe, <br />
			    our Administrator</p></a>
</div> <!--administrator-end-->
	


</body>
</html>


I am sure I am making this very confusing. I hope you can following what I am try to correct.

I will be glad to provide any more info if you need it.

Thanks for any help you can provide…

Sarb

Sounds like this is an ASP page. Somewhere in the ASP code you are attaching the word oaknoll.

Nevermind. Look at your code.

<li><a href=“…/health_center.asp”>Health Center</a></li>

That’s for the healthcare dropdown. Notice how you force it to go up a level so that the current page directory (for employment) isn’t there.

Now look what you do for health services.

<li><a href=“physical_therapy.asp”>Physical Therapy</a></li>

That will go to the physical_therapy page on the oaknoll directory.

Your best bet would to reference the root and go from there (or give absolute URLS such as http://www.sitehere.com/oaknoll/asdf.html)

<li><a href=“/physical_therapy.asp”>Physical Therapy</a></li>

Notice the slash before physical, which indicates to go to the root first.

Thanks Ryan,

I put the absolute URL in the link coding and it worked like a charm.

I appreciate your taking the time to help me out…

Sarahb

Glad I could be of help sarb :). You’re welcome.