eWebEditor 问题 高手来帮忙下。。。急啊。。。
用了这个组件,但是显示新闻的时候总出现html代码,感觉DeCode.asp里面的函数不起作用。。是哪里出问题了??
-------------------------------------------------
<!--#include virtual = "xian/news/manage/eWebEditor/include/DeCode.asp"-->
<!--#include file="include/db_conn.asp" -->
<HTML>
<HEAD>
<TITLE>_新闻中心</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<style type="text/css">
<!--
.p9 { font-size: 9pt; line-height: 14pt}
a:visited { color: #0033CC; font-size: 9pt}
a:link { color: #0033CC; font-size: 9pt}
a:hover { font-size: 9pt; color: #FF0000}
.p14 { font-size: 14.8px}
.NewsView {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
text-decoration: none;
}
-->
</style>
<%
' ======================
' 功能:显示新闻
' 描述:显示编辑的内容页,此页注意一下DeCode接口函数的调用。
' ======================
Call Header("显示新闻内容")
Call Content()
Call Footer()
' 本页内容区
Sub Content()
' 传入参数:新闻ID
Dim sNewsID
sNewsID = Trim(Request.QueryString("id"))
' 新闻ID有效性验证,防止有些人恶意的破坏此演示程序
If IsNumeric(sNewsID) = False Then
GoError "请通过页面上的链接进行操作,不要试图破坏此演示系统。"
End If
' 从数据库中取初始值
Dim sTitle, sContent, sPicture, sOriginalFileName, sSaveFileName, sSavePathFileName
sSql = "select t_news_sort.newsort as boardname,t_news_purpose.* from t_news_purpose,t_news_sort where t_news_purpose.newsort=t_news_sort.id and t_news_purpose.id=" & sNewsID
set oRs=server.CreateObject("adodb.recordset")
oRs.Open sSql, Conn, 1, 1
sContent = oRs("Content")
oRs.Close
' 禁用某些标签,如出于安全考虑的Script标签,等
' 要使用此功能需要先包含"Include/DeCode.asp"文件。
' 此例只过滤SCRIPT标签,即意味着内容中的客户端脚本不会生效,您可根据实际的需要加入其它标签。
' 当前支持过滤的标签,可以查看DeCode.asp文件中的说明。
Response.Write eWebEditor_DeCode(sContent, "SCRIPT")
' 输出新闻
Response.Write "<table border=0 cellpadding=5 width='90%' align=center>" & _
"<tr><td align=center><b>" & sTitle & "</b></td></tr>" & _
"<tr><td>" & sContent & "</td></tr>" & _
"</table>"
End Sub
%>
这个是页面代码
---------------------------------------------------------
<IMG height=180 src=”NewsFile/200787105118265.jpg” width=180 border=0> 测试 <IMG src=”../../../xian/news/manage/eWebEditor/sysimage/file/doc.gif” border=0><A href=”NewsFile/200787105136846.doc” target=_blank>12.doc</A>
这个是输出页面显示。。。
有什么办法解决下啊。。。