09 2015 档案
摘要:探讨C#.NET下DropDownList的一个有趣的bug及其解决办法摘要:本文就C#.Net 环境下Web开发中经常使用的DropDownList控件的SelectedIndex属性进行了详细的探讨,发现了这一属性在使用中存在的问题,并经过测试,提出了回避和解决的办法。关键词:DropDownL...
阅读全文
摘要:1,if(ds == null) 这是判断内存中的数据集是否为空,说明DATASET为空,行和列都不存在!! 2,if(ds.Tables.Count == 0) 这应该是在内存中存在一个DATASET,但是,数据集中不存在表!! 3,if(ds.Tables.Count ==1 && ds....
阅读全文
摘要:Double dValue = 95.12345; int iValue = 10000; string strValue = "95.12345"; string result = ""; ...
阅读全文
摘要:请看下面两条语句:select * from table1 inner join table2 on table1.id = table2.idselect * from table1,table2 where table1.id = table2.id其实这两种方式的执行结果一样,具体区别如下:1...
阅读全文