摘要:
2005-06-02 21:50:41,431 warn [net.sf.hibernate.util.jdbcexceptionreporter] - <sql error: 17027, sqlstate: null> 2005-06-02 21:50:41,441 error [net.sf.hibernate.util.jdbcexceptionreporter] - ......
摘要:
if (b == parentyval-1) { if (walkability[parentxval-1][parentyval] == unwalkable || walkability[parentxval][parentyval-1] == unwalkable) \=====》这个“\”是什么意思? corner = unwalkable; } else if (b ==......
怎样判断RadioButtonList什么都没选
有以下语句
dim a as string
a=CType(p1.FindControl("sf1"), RadioButtonList).selecteditem.value
如果用户选择了一个选项,程序是不会出错的。
一旦漏选,就会提示System.NullReferenceException: 未将对象引用设置到对象的实例。
请问如何避免?
NO.1 作者: fancyf
什么都没选的话RadioButtonList.SelectedIndex == -1
NO.2 作者: sp1234
把这一句放入 RadioButtonList_SelectIndexChanged 事件。
摘要:
a=0; a=(a==0);这个语句是怎么一回事 请各位大虾帮帮忙!!!!!
......