我爱Aspx >> Asp.Net >> 请问变量yxs1和yxs2在取出数据表中是数字则就正确,如表中值是字符则报错未定义,请问是怎么办啊?谢谢请问变量yxs1和yxs2在取出数据表中是数字则就正确,如表中值是字符则报错未定义,请问是怎么办啊?谢谢
google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_color_url = "000000";
如表中值是“张三”,则报错 “张三”未定义
response.write "<tr bgcolor="&bgclr&" style="cursor:hand;" onmouseover=this.style.backgroundColor="lightblue" onmouseout=this.style.backgroundColor="" onclick="doit(" & rs("yxid") & "" &_
" ," & rs("yxliushuihao") & ")">"
function doit(yxs1,yxs2)
{
document.form2.textfield2.value = yxs1;
document.form2.textfield3.value = yxs2;
}
}
第2楼. 由 yilun96211 于 2007-6-27 20:30:26 发表
把
response.write "<tr bgcolor="&bgclr&" style="cursor:hand;" onmouseover=this.style.backgroundColor="lightblue" onmouseout=this.style.backgroundColor="" onclick="doit(" & rs("yxid") & "" &_
" ," & rs("yxliushuihao") & ")">"
Ҷƪл˵?
怎么在jsp中显示oracle数据库中的..[07-06]
datagrid数据导入Excel出错,请高..[07-06]
java读取txt,并解析成xml格式数据[07-06]
遇到这样问题,你如何设计数据库..[07-06]
用javascript 读取xml文档中的数..[07-06]
急,帮上司做的东西不能有问题啊..[07-06]
急求助!关于从ACCESS数据库中读取..[07-06]
webwork怎么遍历date型数据,[07-06]
用ASP代码创建Access数据库、表、..[07-06]
数据排序问题[07-06]
C#remoting中遇到的问题,急求解[07-06]
原来装了XP,执行了SYS C:。有什..[07-06]
关于MYSQL查总记录条数的问题[07-06]
搜索乱码???[07-06]
关于VFP6中管理系统的编写.[07-06]
__doPostBack和updatepanel问题[07-06]
怎么在jsp中显示oracle数据库中的..[07-06]
datagrid数据导入Excel出错,请高..[07-06]
如何用vba 控制字体颜色[07-06]
百度,google编码转换问题![07-06]