首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

asp中如何用request.Form方法获取并正确显示包含带双引号的字符串变量? 高分送

2012-02-04 
asp中怎么用request.Form方法获取并正确显示包含带双引号的字符串变量?急急急! 高分送!损件/维修项目:sel

asp中怎么用request.Form方法获取并正确显示包含带双引号的字符串变量?急急急! 高分送!
损件/维修项目:        
<select   style= "width:250px;height:250px "   name= "select1 "   size= "1 ">
            <option>   </option>
<%
sql2   =   "select   description   from   hy_offer_settle   where   description   like '% "&request( "dd ")& "% '   order   by   segment "  
set   rs2   =   cn.Execute   (sql2)  
do   while   not   rs2.eof  
%>  
<option   value= " <%=rs2( "description ")%> "> <%=rs2( "description ")%> </option>
<%  
rs2.movenext  
loop
rs2.close  
set   rs2   =   nothing  
%>  
</select>
另一个页面用response.Write(request.Form( "select1 "))显示,结果把双引号后面的部分截断了!怎样正确显示??   如select1=(310) "O "形圈102x3   ZFN744   NBR-90-10.显示后只有(310)了.解决了马上送分!

[解决办法]
错了
bbb=rs( "select1 ")
[解决办法]
<select style= "width:250px;height:250px " name= "select1 " size= "1 ">
<option> </option>
<%
sql2 = "select description from hy_offer_settle where description like '% "&request( "dd ")& "% ' order by segment "
set rs2 = cn.Execute (sql2)
do while not rs2.eof
%>
<option value= " <%=Replace(rs2( "description "), " " " ", "&quot; ")%> "> <%=rs2( "description ")%> </option>
<%
rs2.movenext
loop
rs2.close
set rs2 = nothing
%>
</select>

热点排行