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

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>