异常详细信息: System.InvalidCastException: 指定的转换无效。源错误:
行 146: SuntownBase.STFunction cnn=new SuntownBase.STFunction();
行 147: DataView dvsetup=cnn.OperateDBGetDataView("select fromdate,todate from stsys.datesetup where name<>'上午' and name<>'下午'");
行 148: if(dvsetup.Count !=0)
行 149: {
行 150: for(int i=0;i<=dvsetup.Count-1 ;i++)
出错是在148行,我怎么也不知道哪里错了,帮忙看看啊
行 146: SuntownBase.STFunction cnn=new SuntownBase.STFunction();
行 147: DataView dvsetup=cnn.OperateDBGetDataView("select fromdate,todate from stsys.datesetup where name<>'上午' and name<>'下午'");
行 148: if(dvsetup.Count !=0)
行 149: {
行 150: for(int i=0;i<=dvsetup.Count-1 ;i++)
出错是在148行,我怎么也不知道哪里错了,帮忙看看啊
解决方案 »
- 很久以前看过一帖,用.net3.5做的一个winform程序,可以动态修改另外一个窗体的属性,如颜色字体等,谁知道那个连接(在线等)
- 这样的导航怎么实现?C#.NET+Oralce
- 怎样处理全角和半角的问题?????
- Hashtable和ArrayList有什么不同
- 如何才能在内存中找到正在运行的其它程序的窗口内的控件的句柄或值?
- 请教用visual studio 2005开发windows应用程序的性能问题
- 求一简单算法.
- 求高手解答。树形结构问题。
- 运行时,控件的选择、拖动问题!
- 水晶报表转换成excel时出现的问题?
- 急!!请问这是什么问题:”Automation服务器不能创建对象“,现在已经不能创建任何C#项目了
- C#里面如何保持多个用户使用同一对象实例?
if(dvsetup.Count !=0)
with
if( dvsetup != null && dvsetup.Table.Rows.Count > 0 )