navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

.asp Pages Problem in Sub Directories?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> .asp Pages Problem in Sub Directories?
Page: [1]
 
abdulsamikhan

 

Posts: 105
Joined: 12/23/2003
From: Pakistan
Status: offline

 
.asp Pages Problem in Sub Directories? - 6/14/2004 13:00:01   
Hi All,

I am running Windows Server 2003 and IIS 6. I am using Microsoft FrontPage 2003. When I create pages at root of the web with .asp extension, it works fine, but when I create pages in any sub folder the .asp pages wont work. and giving me 404 error message. I've revised the Server Extensions those are pretty well defined.

Even I've published them to the Web Server (External) but they are also not working there. If the server extensions are not configured properly then why the pages are opening at root of the web. I am using DRW of FP2003 for displaying records. The backend is Microsof Access 2003.

Can you please tell me the solution...

Waiting for the reply...


Sami
BeTheBall

 

Posts: 6381
Joined: 6/21/2002
From: West Point Utah USA
Status: online

 
RE: .asp Pages Problem in Sub Directories? - 6/14/2004 14:05:19   
Is your "sub directory" truly that, or is it a sub-web? Do you have a link to the non-functioning page?

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to abdulsamikhan)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: .asp Pages Problem in Sub Directories? - 6/14/2004 17:10:47   
Seems to be a fairly common issue with 2003

http://www.aspfaq.com/show.asp?id=2476

http://support.microsoft.com/?kbid=315122

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to BeTheBall)
abdulsamikhan

 

Posts: 105
Joined: 12/23/2003
From: Pakistan
Status: offline

 
RE: .asp Pages Problem in Sub Directories? - 6/15/2004 2:22:10   
Spooky!

The links you have provided is not a solution, because the ASP.NET and ASP is already allowed in IIS. I already mentioned that .asp extensions are only working in the root of the web when we create any .asp page in any sub directory it wont work and give me error message.

bethebell: .asp are working very fine in Sub-Webs but not working in Sub-Folders...

(in reply to Spooky)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: .asp Pages Problem in Sub Directories? - 6/15/2004 2:34:56   
Is there any redirection occuring in these scripts? what do the pages do?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to abdulsamikhan)
abdulsamikhan

 

Posts: 105
Joined: 12/23/2003
From: Pakistan
Status: offline

 
RE: .asp Pages Problem in Sub Directories? - 6/15/2004 11:14:24   
There is no redirection enable or being happened. Only the 404 error message is displaying...

Another thing. When I create an ASP page using NotePad editor it works fine, but when I use FP2003 it wont work.

(in reply to Spooky)
abdulsamikhan

 

Posts: 105
Joined: 12/23/2003
From: Pakistan
Status: offline

 
RE: .asp Pages Problem in Sub Directories? - 6/15/2004 12:03:00   
This is the actual error message: (I unchecked the friendly error message option from IE):

quote:

Active Server Pages error 'ASP 0131'

Disallowed Parent Path

/test/admin/delMCat.asp, line 4

The Include file '../_fpclass/fpdblib.inc' cannot contain '..' to indicate the parent directory.


This is the coding of .asp page:

 <html>

<!-- #BeginTemplate "../entry.dwt" -->

<head>
<% ' FP_ASP -- ASP Automatically generated by a FrontPage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<!-- #BeginEditable "doctitle" -->
<title>Delete Main Category...</title>
<!-- #EndEditable -->
<link rel="stylesheet" type="text/css" href="../css/jics.css">
<link rel="stylesheet" type="text/css" href="../css/MSEducation.css">
</head>

<body style="text-align: center" bgcolor="#000000">

<p><a name="Top"></a></p>

<table cellpadding="0" cellspacing="0" width="756" height="502">
	<!-- MSTableType="layout" --><tr>
		<td></td>
		<td></td>
		<td></td>
		<td height="10"></td>
	</tr>
	<tr>
		<td valign="top" colspan="3">
		<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
			<!-- MSCellFormattingTableID="4" --><tr>
				<td width="20">
				<img alt="" src="../images/MsoPnl_Cnr_tl_4C.gif" width="20" height="20"></td>
				<td bgcolor="#99CC00" nowrap width="100%">
				<!-- MSCellFormattingType="header" --><p align="center">
				<b>Welcome to dabclub Songs Collection</b></td>
				<td height="20" width="20">
				<img alt="" src="../images/MsoPnl_Cnr_tr_4E.gif" width="20" height="20"></td>
			</tr>
			<tr>
				<td valign="top" bgcolor="#7EA800" colspan="3" height="100%">
				<!-- MSCellFormattingType="content" --> </td>
			</tr>
		</table></td>
		<td height="95"></td>
	</tr>
	<tr>
		<td bgcolor="#003399" colspan="3" align="center" background="../images/pk-bar.gif">
		<p align="center"><font color="#FFFFFF">
		<a href="http://www.dabclub.com"><font color="#000000">Home</font></a></font>
		<font color="#FFFFFF">|</font> <font color="#FFFFFF">
		<a href="../default.asp"><font color="#000000">Song's Home</font></a> |
		<a href="http://www.dabclub.com/htm/contacts.htm"><font color="#000000">Contacts</font></a> |
		<a href="http://www.dabclub.com/indexfunnypix.asp">
		<font color="#000000">Funny Pictures</font></a> |
		<a href="http://www.dabclub.com/discussion"><font color="#000000">Discussion Form</font></a> |
		<a href="http://www.dabclub.com/wallpapers/mainwallpapers.htm">
		<font color="#000000">Wallpapers</font></a> | 
		<a href="http://www.dabclub.com/feedback.asp"><font color="#000000">Feedback</font></a> |
		<a href="http://www.dabclub.com/guestbook.asp"><font color="#000000">Sign Guest Book
		</font></a>| <a href="http://www.dabclub.com/jokes.asp">
		<font color="#000000">Jokes</font></a> | 
			<a href="http://www.dabclub.com/general/cookbook/cookbook.htm">
		<font color="#000000">Cookbook</font></a> | 
		<a href="http://www.dabclub.com/egreetings/skrifa.asp">
		<font color="#000000">e-Greetings</font></a> | 
		<a href="http://www.dabclub.com/htm/about.htm"><font color="#000000">About us</font></a></font></td>
		<td height="20"></td>
	</tr>
	<tr>
		<td width="50" bgcolor="#7EA800"> </td>
		<td valign="top" width="650" height="356">
		<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
			<!-- MSCellFormattingTableID="2" --><tr>
				<td bgcolor="#99CC00" height="1">
				<img alt="" width="1" height="1" src="../images/MsSpacer.gif"></td>
			</tr>
			<tr>
				<td valign="top" bgcolor="#EFFFBF" height="100%" width="100%">
				<!-- MSCellFormattingType="content" --><!-- #BeginEditable "MainSection" -->
				<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table8">
					<tr>
						<td height="20" bgcolor="#E1FF88">
						<p align="center"><b><span style="font-size: 14pt">
						Delete Main Category</span></b></td>
					</tr>
				</table>
				<form method="POST" action="--WEBBOT-SELF--">
					<!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
					<table width="100%" border="1">
						<thead>
							<tr>
								<th width="7%"><b>ID</b></th>
								<th width="11%"><b>M Cat ID</b></th>
								<th width="18%"><b>Cat Name</b></th>
								<th><b>Belongs</b></th>
							</tr>
						</thead>
						<tbody>
							<!--webbot bot="DatabaseRegionStart" s-columnnames="ID,MCatID,CatName,Belongs" s-columntypes="3,3,202,202" s-dataconnection="Songs" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource="MainCategory" s-displaycolumns="ID,MCatID,CatName,Belongs" s-criteria s-order s-sql="SELECT * FROM MainCategory" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="20" botid="0" u-dblib="../_fpclass/fpdblib.inc" u-dbrgn1="../_fpclass/fpdbrgn1.inc" u-dbrgn2="../_fpclass/fpdbrgn2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the start of a Database Results region. The page must be fetched from a web server with a web browser to display correctly; the current web is stored on your local disk or network.</font></td></tr>" startspan --><!--#include file="../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM MainCategory"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=4 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="Songs"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=20
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&ID=3&MCatID=3&CatName=202&Belongs=202&"
fp_iDisplayCols=4
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="48619" --><tr>
								<td width="7%">
								<p align="center"><input type="checkbox" name="MyCheckBox" value="<%=FP_FieldVal(fp_rs,"ID")%>"></td>
								<td width="11%">
								<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,MCatID,CatName,Belongs" s-column="MCatID" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>MCatID<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"MCatID")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="9970" --></td>
								<td width="18%">
								<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,MCatID,CatName,Belongs" s-column="CatName" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>CatName<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"CatName")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="11503" --></td>
								<td>
								<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,MCatID,CatName,Belongs" s-column="Belongs" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Belongs<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Belongs")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="12237" --></td>
							</tr>
							<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="../_fpclass/fpdbrgn2.inc" i-groupsize="20" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the end of a Database Results region.</font></td></tr><TR><TD VALIGN=MIDDLE COLSPAN=64><NOBR><INPUT TYPE=Button VALUE="  |<  "><INPUT TYPE=Button VALUE="   <  "><INPUT TYPE=Button VALUE="  >   "><INPUT TYPE=Button VALUE="  >|  ">  [1/20]</NOBR><BR></td></tr>" startspan --><!--#include file="../_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="56926" --></tbody>
					</table>
					<p align="center"> </p>
					<p align="center">
					<input type="submit" value="Delete Selected" name="B1">
					<input type="reset" value="Unchecked All" name="B2"></p>
				</form>
				<p align="center"> </p>
				<p align="center"><a href="#Top">Back to Top</a><!-- #EndEditable --></td>
			</tr>
		</table></td>
		<td width="54" bgcolor="#7EA800"> </td>
		<td height="356"></td>
	</tr>
	<tr>
		<td bgcolor="#B38E00" colspan="3" background="../images/pk-bar.gif" align="center">
		<p align="center">Copyright © All rights reserved.
		<font color="#EFFFBF">
		<a target="_blank" href="http://www.jixoft.com"><font color="#000000">
		Maintained and Developed by <font face="Arial Black"><b><i>JiXoft</i></b></font>.com</font></a></font></td>
		<td height="21" width="2"></td>
	</tr>
</table>

</body>

<!-- #EndTemplate -->

</html>


I hope you can better solve...

(in reply to abdulsamikhan)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: .asp Pages Problem in Sub Directories? - 6/15/2004 14:36:14   
You need to enable parent paths or modify the coding
http://www.frontpagewebmaster.com/m-194807/mpage-1/key-parent%252Cpath//tm.htm#194807

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to abdulsamikhan)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> .asp Pages Problem in Sub Directories?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts