Site is showing HTML code instead of page
They gave me files of their website and I used FileZilla to FTP them to the server. But, when you go to their homepage, it is nothing but the HTML code. Obviously this needs to be fixed. Never came across this problem before, so I'm not sure how to fix it.
All of the files are .asp files. I'm only familiar with HTML files, so perhaps this is why I can't figure it out?? I didn't know what asp was, so I Googled it. Doesn't help me much.
Below is the code that displays.
Another quick question, you'll notice there are no head, html, or body tags...is this normal when dealing with asp? Something tells me they should be there. If they're not there, how do you put in keywords and such??
Note that I deleted most of the code in the middle to hide company details and such, but it was basically a bunch of tables. So pay no attention if you see a tag that isn't closed or things like that. Unless of course that may be part of the problem, then let me know and I'll post all of the code with just company details removed.
<!-- #include file="include/database.asp" -->
<!-- #include file="include/header.asp" -->
<table border="0" cellspacing="1" width="100%" bgcolor="#FFFFFF">
<tr>
<td width="100%" align="top">
<table border="0" cellspacing="1" width="100%">
<tr>
<td width="79%" align="top" valign="top">
<table border="0" cellspacing="1" width="100%">
<tr>
<td width="100%">
<table border="0" cellspacing="0" width="100%" cellpadding="5">
<tr>
<td valign="top" align="center">
<p align="center">
<iframe id="datamain" src="rotate_random.asp" width="410" height="260" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameBORDER="0" scrolling="no" align="center"></iframe>
<br>
<a class="copybig16" href="photogal.asp">Visit the Photo Gallery</a><br><div align="center"><FONT
color="#ffffff" size="+1"><MARQUEE bgcolor="#000080"
direction="left" loop="5" width="75%" scrolldelay="100" style="font-family:Verdana"></MARQUEE></FONT></DIV>
</td>
<td width="50%" valign="top"><font class="copy">
<%
dbfpage = dsnStr
Set rsfpage = Server.CreateObject("ADODB.Recordset")
sqlpage = "select description from fpage where id=1"
rsfpage.Open sqlpage, dbfpage
%>
<font class="copy"><%= rsfpage("description")%></font>
<%
rsfpage.Close
Set rsfpage = Nothing
%>
I just removed them to hide company details and to save space.
<!-- #include file="include/footer.asp" -->
This blog is awesome: http://www.robkonrad.com/blog. Read it.
================================================== ===
BS free SEO services, training and advice - SEO Point
This blog is awesome: http://www.robkonrad.com/blog. Read it.
================================================== ===