刚刚好薛之谦小提琴谱:ASP函数调用,前台为何出现的是代码,请各位大侠帮帮忙,谢谢!代码如下:

来源:百度文库 编辑:高考问答 时间:2024/04/28 00:30:30
<%@language=vbscript codepage=936 %>
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!--#include file="Inc/Function.asp"-->
<%if Request.QueryString("mark")="southidc" then%>
<%

Title=server.htmlencode(Trim(Request("Title")))
Aboutusorder=server.htmlencode(Trim(Request("Aboutusorder")))
Content=server.htmlencode(Trim(Request("Content")))
%>

<%

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from Aboutus "
rs.open sql,conn,1,3
rs.addnew
rs("Title")=Title
rs("Content")=Content
rs("Aboutusorder")=Aboutusorder

rs.update
rs.close
response.redirect "AdminAboutus.asp"
end if
%>

<!-- #include file="Inc/Head.asp" -->

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> <br> <table width="560" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
<tr>
<td height="25" class="back_southidc">
<div align="center"><strong>添加栏目<br>
</strong></div></td>
</tr>
<tr>
<form method="post" name="myform" action="AdminAboutusAdd.asp?mark=southidc">
<td><div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#ECF5FF">
<td width="19%" height="23" bgcolor="#ECF5FF"> <div align="center">栏目名称:</div></td>
<td width="40%" height="25"> <input type="text" name="Title" class="inputtext" maxlength="30" size="25">
</td>
<td width="14%"><div align="center">排序号:</div></td>
<td width="27%"><input name="Aboutusorder" type="text" id="Aboutusorder" size="4"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="25" colspan="4"><div align="center">栏目内容</div></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="300" colspan="4">
<textarea name="Content" type="hidden" style="display:none"></textarea><iframe ID="eWebEditor1" src="Southidceditor/ewebeditor.asp?id=Content&style=" frameborder="0" scrolling="no" width="550" HEIGHT="450"></iframe>
</td>
</tr>
<tr bgcolor="#ECF5FF">
<td colspan="4"> <div align="center">
<input name="submit" type="submit" value="确定">
 
<input name="reset" type="reset" value="取消">
</div></td>
</tr>
</table>
</div></td>
</form>
</tr>
</table>
<br> </td>
</tr>
</table>
</body>
</html>

没有装asp解释器。

可能是你使用的空间不支持asp

代码没有问题啊。
你可以试一下别的网页是否可以解释。
我想你不会犯把代码放错位置的简单错误吧??
一般不解释也不会在前台出现代码吧,

没有装asp解释器。