Click to See Complete Forum and Search --> : .asp page displays source code in browser


hittiok
10-14-2004, 07:13 PM
hi..i am modifying a web page developed by somebody else..i did some changes in a HTML file..now what is happening is that when i test the website, one file with .asp extension is displaying its source code in the browser, even though i have not made any changes to that file..any help?

chrismartz
10-14-2004, 09:07 PM
are you sure this server supports asp? also, post a link to the location of this file so I could take a look

hittiok
10-14-2004, 09:33 PM
i am sure it supports ASP, becuz it was working fine until i added a new HTML file..the link is http://www.akmicro.com/index1.asp..here it works fine..this link is without my changes, when i make a change this page gets diplayed as a source code

javaNoobie
10-14-2004, 09:53 PM
Might want to tell/show us the changes you made to the asp page. Zip it and post it as an attachment.
Most likely is that you wrote the source code outside of the <% %> tags

hittiok
10-14-2004, 10:06 PM
hi..i have not made any changes to the asp file, just made changes to a few HTML & inserted a new HTML file..anyway i will send the original file and the one that i made changes..the one i am sending now works fine..the page that is giving me problem after i make a few changes to some HTMl files is index1.asp..will send the changed folder also...i have just added one more HTMl files thatz abt it..do i need to configure the server so something for every HTML i include?

this is teh code
<%
sub loguser (ctype)
set conn=server.createobject("ADODB.CONNECTION")
datafile="database\CustInfor.mdb"
sysdatafile="database\akm.mdw"
connstr="Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath(""& datafile &"") _
& ";Jet OLEDB:System Database=" & server.mappath(""& sysdatafile &"")

conn.open connstr,"webuser", "akmicro"
set rs=server.createobject("adodb.recordset")
rs.open "select * from logcount",conn

cdealer=rs("dealer")
ctotal=rs("total")
ccustomer=rs("customer")
select case ctype
case "customer"
ccustomer=ccustomer+1
case "dealer"
cdealer=cdealer+1
case "total"
ctotal=ctotal+1
end select

sql2="Insert into logcount values ('" & ctotal & "','" & ccustomer & "','" & cdealer &"')"

conn.execute "delete * from logcount"

conn.execute sql2
rs.close
conn.close
end sub
%>
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="keywords" content= "payroll, Canadian payroll, payroll software, payroll Canada, payroll, accounting, accounting payroll, Paymate, AKM, A.K.M., A.K. Micro, AK Micro, A.K. Microsystems, AK Microsystems, A.K. Microsystem, AK Microsystem, payrol, accounting software">
<title>AK Microsystems: Canadian Payroll Software Solutions</title>
</head>

<frameset rows="89,*" framespacing="0" border="0" frameborder="0">
<frame name="Fcomsign" scrolling="no" src="Ptop.htm" target="_self" marginwidth="0" marginheight="0">
<frameset cols="19%,*">
<frame name="Fmaincategory" target="Fcontents" scrolling="no" src="MCleft.htm" marginwidth="0" noresize marginheight="0">
<frame name="Fcontents" src="Pmain.asp" target="_self" scrolling="auto" noresize>
</frameset>
<noframes>
<body leftmargin="10" topmargin="10">

<p>This page uses frames, but your browser doesn't support them. </p>

<p>Please use IE 4.0, Netscape 4.0 or higher version</p>
</body>
</noframes>
</frameset>
<% loguser ("total") %>
</html>

chrismartz
10-15-2004, 05:23 PM
i guess i'm not sure exactly what you are changing...is it this page with the frames that you are changing, or is it another page that is called by this page?