一个小问题!
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%><!--#include file="connection/conn.asp"-->
<%
dim rs2,sql2
set rs2=server.CreateObject("adodb.recordset")
sql2=" select * from shangjia_info"
rs2.open sql2,conn ,1,1
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {font-size: small}
.STYLE9 {
font-size: small;
color: #010000;
font-family: "宋体";
}
.STYLE12 {color: #999999}
.STYLE13 {
color: #0099FF;
font-weight: bold;
font-size: small;
}
-->
</style>
</head>
<body>
<table width="1024" height="512" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="1024" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" class="header" style="border-top:solid 3px #FFFFFF">
<tr>
<td class="tabs"><table border="0" cellspacing="0" cellpadding="0" align="center">
<tr id="twotabtop">
<td width="140" valign="top"><div align="left"><img src="image_metro/logo.jpg" width="140" height="80" /></div></td>
<td width="20" class="lefton"> </td>
<td width="836" height="35" valign="top" class="lefton"><table width="860" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="860" height="50" valign="top"> </td>
</tr>
<tr>
<td height="30"><table width="854" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="594"><table width="615" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="459" border="0" align="left" cellpadding="0" cellspacing="2">
<form method="post" name="userlogin" id="userlogin">
<input type="hidden" name="formhash" value="b639ce54" />
<input type="hidden" name="referer" value="index.php" />
<tr>
<td width="460" class="title_link_b"> <span class="STYLE1"> 用户名:
<input type="text" name="username" class="STYLE1"
onblur="this.style.background='#FFF';" onfocus="this.style.background='#f4f4f4';" size="11" maxlength="20" width="50" height="13"/>
密码:</span>
<input type="password" name="password" class="inputbox" onblur="this.style.background='#FFF';"
onfocus="this.style.background='#f4f4f4';" size="11" value="" maxlength="16" width="50" height="13" />
<span class="STYLE1">
<input name="loginsubmit" type="submit" class="STYLE1" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid" value="登录" />
<input name="button" type="button" class="STYLE1" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid" value="注册" /> </td>
</tr>
</form>
</table></td>
<td width="150" class="STYLE1">区域搜索:
<select name="select">
<option>龙华区</option>
</select></td>
</tr>
</table>
<label></label></td>
<td width="260"><div align="right"><img src="image_metro/column.jpg" width="250" height="30" /></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td background="image_metro/sm_1.gif" class="secondary"><table border="0" cellpadding="0" cellspacing="0" align="center">
<tr id="twotabsubnav" height="34">
<td class="navspacer" valign="top"><table height="28" width="760" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="100%" height="50" align="center" background="image_metro/sm_1.gif" bgcolor="#FFFFFF"><span class="STYLE9">汽车美容 | 摄影 | 妇婴 | 时尚 |培训 | 家居 | 家电 | 家政 | 物流 |</span></td>
</tr>
</table></td>
</tr>
</table>
<form method="get" name="searchBrick" id="searchBrick" style="margin:2px 0 0 0;">
<input type="hidden" name="ix" value="sunray"/>
<input type="hidden" name="pageletid" value="headsearch"/>
<table align="center" id="TopSearch" border="0" cellspacing="0" cellpadding="0">
<tr id="twotabsearch">
<td width="80" align="center" class="SearchTitle"><div align="center"><span class="STYLE1">商品搜索</span> </div></td>
<td width="100"><div id="topSearchCategory">
<select name="searchType" class="SearchSel" onchange="changeSearchKind()" style="width:100px">
<option value="" selected="selected">所有类别</option>
<option value="1">汽车美容</option>
<option value="2">摄影</option>
<option value="3">妇婴</option>
<option value="4">时尚</option>
<option value="5">培训</option>
<option value="6">家居</option>
<option value="7">家电</option>
<option value="8">家政</option>
<option value="9">物流</option>
</select>
</div></td>
<td width="200" align="center"><label>
<input type="text" name="textfield" />
</label></td>
<td width="5"> </td>
<td align="right"><input type="image" src="http://images. alt="查找" name="Go" border="0" /></td>
<td><div id="searchKindArea" class="SearchKeyword" style="margin:0;"></div>
<input type="hidden" name="bestSaleNum" value="0" />
<script language="JavaScript" type="text/javascript">changeSearchKind();</script></td>
</tr>
</table>
<script language="JavaScript" type="text/javascript">
window.ac.install(document.searchBrick, document.searchBrick.keywords, "/FusionPrefixSearchApp/prefixsearch_proxy.jsp?");
</script>
</form>
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr id="twotabsubnav" height="10">
<td class="navspacer"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="40" class="STYLE9 STYLE12">位置:商家列表</td>
</tr>
<tr>
<td><table width="1024" height="112" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="720" valign="top"><table width="720" border="0" cellpadding="0" cellspacing="1" bgcolor="#99CCCC">
<tr>
<td bgcolor="#FFFFFF"><table width="720" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="28" background="image_metro/sm_1_1.jpg" bgcolor="#F0F6F7"><span class="STYLE13">搜索结果:</span></td>
</tr>
<tr>
</tr>
</table></td>
</tr>
</table>
<form id="form1" name="form1" method="post" action="" runat="server">
<%
do while not rs2.eof
%>
<table width="442" height="100" border="0" align="leaf">
<tr>
<td width="9" rowspan="4" ><img src="/photo/metro/<%=rs2("pic")%>"></td>
<td height="25" colspan="2" align="left" style="font-size:14px; font-family:"宋体";"><%=rs2("name")%></td>
</tr>
<tr>
<td width="73" align="center"><span style="font-size:12px">经营范围:</span></td>
<td width="207" height="25" style="font-size:12px"><%=rs2("fanwei")%></td>
</tr>
<tr>
<td width="73" align="center" ><span style="font-size:12px">联系电话:</span></td>
<td height="25" style="font-size:12px" ><%=rs2("tel")%></td>
</tr>
<tr>
<td width="73" align="center"><span style="font-size:12px">详细地址:</span></td>
<td height="25" style="font-size:12px"><%=rs2("dizhi")%></td>
</tr>
</table>
<%
rs2.movenext
loop
%>
</form>
</td>
<td width="300" valign="top"> </td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<img width="135" height="100" src="/photo/metro/<%=rs2("pic")%>">
数据库里面的pic列 字段类型我用了 varchar
数据库里面就存的是图片的文件名
Script error detected at line 51.
Source line: Response.Write rs2("shangjia_tupian")
Description: 类型不匹配: 'Response.Write'
如果把图片那行的代码删除就可以正常显示。。。。