日期:2014-05-17  浏览次数:20959 次

<IMG src="0.gif">这样的值如何显示
我表里某字段的值是这样的:
<IMG   src= "http://localhost/jg/UploadFiles/2007513121836530.gif ">
在页面里我想让它原样显示,请问怎么写

------解决方案--------------------
<%= "&lt;IMG src= " "http://localhost/jg/UploadFiles/2007513121836530.gif " "> " %>
------解决方案--------------------
直接用 <%=rs( "字段 ")%> 就可以显示
------解决方案--------------------
str = " <IMG src= " "http://localhost/jg/UploadFiles/2007513121836530.gif " "> "

str = replace(str, "& ", "&amp; ")
str = replace(str, " < ", "&lt; ")
str = replace(str, "> ", "&gt; ")
str = replace(str, " " " ", "&quot; ")
str = replace(str, " ' ", "&apos; ")

response.write str
------解决方案--------------------
<%=server.htmlencode( " <IMG src= " "http://localhost/jg/UploadFiles/2007513121836530.gif " "> ")%>
------解决方案--------------------
Server.Htmlencode(rs( "字段名 "))