asp显示不出来?奇怪

来源:百度知道 编辑:UC知道 时间:2024/05/16 12:49:00
response.write " <td>"&product_info_PriceS&"</td>"
显示不出来。
"&product_info_name&
却能显示出来,低下的计算全部没用,不删也应该没关系吧。

response.write "<tr>"
response.write " <td>"
response.write " <table border=1 width=100% cellpadding=4 style='border-collapse: collapse' bordercolor=#DFDFDF>"
response.write "<tr bgcolor=#f2f2f2><td>商品名称</td><td>网站价格</td><td></td></tr>"
response.write "<form action=Cart_List.asp method=post name=form1 onsubmit=return CheckFrom();>"
response.write "<input type=hidden name=cmdShow value=Yes>"
if ProdIds<>"" then
aaa=split(ProdNums,",")
bbb=split(ProdIds,",")
Quatitys=split(Request("pbuynums"),",")
session("y&

我看你这是严重的教条主义,你为什么非要用SET 去把查询记录集赋值给变量呢?直接写成 response.write " <td>"&RS("product_info_PriceS")&"</td>",显示肯定没问题.
一句话,用SET 是问题的关键所在.最好拿开.ASP的变量不定义同样行得能.

'这样写可以????
'你的程序中有ON ERROR RESUME NEXT语句吧,去掉后看提示甚么错误,SET是面向对象/类的语句,你定义变量需要??
修改..
set id=rs(0)
set product_info_PriceM=rs(1)
set RMB=rs(2)
set product_info_name=rs(3)
为..
id=rs(0)
product_info_PriceM=rs(1)
RMB=rs(2)
product_info_name=rs(3)

response.write " <td>"&product_info_PriceS&"</td>"
可能要加括号吧!
response.write( )