摘要:判断是否为空值if (js2.Tables[0].Rows[i].IsNull(j))或者if (js2.Tables[0].Rows[i][j]==DBNull.Value)js2是一个DataSet,如果是一个DataTable就直接判断它的Rows即可。加上判断数据类型为数值型if (!( js2.Tables[0].Rows[i][j]) is DBNULL) && (System.Convert.ToSingle(js2.Tables[0].Rows[i][j])>0) ){//...}
阅读全文
摘要:url:http://www.cnblogs.com/jirigala/archive/2010/08/18/1802639.html2010-08-18 17:12 by 通用信息化建设平台, 8108 阅读,104评论,收藏,编辑IT软件行业,一直被别人看做是高薪的行业,当然跟占柜台的比,扫大街的比,那是高多了,杭州城城西,24小时开业的小店,店员是3班轮换,每个月工作30天,每天8个小时,每个月工资1200元不包吃不包住,你愿意干就干,不愿意干就拉倒,你不干还有别人要来干的,基本上没见过哪个店是由于缺少店员关门歇业了。 同样在杭州,编写软件的,基本上除第一年实习的以外,没见过比1200元
阅读全文
摘要:出处:http://hi.baidu.com/st_heping/blog/item/d589e7225acbcd589822ed12.htmlUnderstanding Office Primary Interop Assembly Classes and InterfacesOffice 20030 out of 6 rated this helpful-Rate this topicUnderstanding Office Primary Interop Assembly Classes and InterfacesThe Office Primary Interop Assemblie
阅读全文
摘要:*这是一篇关于寻找SqlHelper的文章,不涉及介绍,仅仅是为了简单说明SqlHelper和我的寻找过程。记得以前得到过一个原版的Sqlhelper.cs类,只是现在怎么也找不到了,记得以前是到微软下载官方企业库,然后安装上后找的(还是从网上下载的)。现在说明一下关于这个东东,省的以后再麻烦。微软的确发布过SqlHelper类库,但是在很久之前了,找到官方的了,名字叫DataAccessApplicationBlock,下载地址:http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=435下载后解压,然
阅读全文
摘要:public classAccessHelp{private string ConnStr;public Class(){ConnStr = "provider=Microsoft.Jet.OLEDB.4.0; Data Source=";ConnStr += System.Web.HttpContext.Current.Request.PhysicalApplicationPath + ConfigurationSettings.AppSettings["AccessDB"];}public DataSet DataSet(string Tablena
阅读全文
摘要://打开数据库的一般方法OleDbConnection cnn =newOleDbConnection(sCnn);cnn.Open();DataTable table =newDataTable();try{OleDbCommand cmd =newOleDbCommand(sCommand, cnn);cmd.CommandType = cmdType;//构建DataAdapterOleDbDataAdapter adapter =newOleDbDataAdapter(cmd);//填充数据table =newDataTable(sDataTableName);adapter.Fill
阅读全文