面朝大海,春暖华开

focus on scientific computue, 3dgis, spatial database
专注于科学计算、GIS空间分析

 
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 75 下一页

2013年1月3日

DateTime.ToString()的用法

摘要: 我们经常会遇到对时间进行转换,达到不同的显示效果,默认格式为:2006-6-614:33:34如果要换成成200606,06-2006,2006-6-6或更多的格式该怎么办呢?这里将要用到:DateTime.ToString的方法(String,IFormatProvider)示例:usingSystem;usingSystem.Globalization;Stringformat="D";DateTimedate=DataTime.Now;Response.Write(date.ToString(format,DateTimeFormatInfo.InvariantInf 阅读全文

posted @ 2013-01-03 11:25 风过 无痕 阅读(556) 评论(0) 推荐(0)

2013年1月1日

DataRow复制一行到另一个DataTable[转]

摘要: http://www.cnblogs.com/pains/archive/2007/11/22/969003.html下面两个方法是DataRow复制一行到另一个DataTable的,直接Add会出错“此行已属于另一个表”,其实以前就知道怎么做的,可每次要用到的时候还是犯糊涂,这次把它们记下来。1.用DataRow.ItemArrayDataTable t=new DataTable();DataRow r=t.NewRow();r.ItemArray=oldRow.ItemArray;t.Rows.Add(r);2.用DataTable.ImportRow()t.ImportRow(oldR 阅读全文

posted @ 2013-01-01 22:58 风过 无痕 阅读(178) 评论(0) 推荐(0)

2012年12月31日

判断DataTable中的空值(字段为数值型)?

摘要: 判断是否为空值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) ){//...} 阅读全文

posted @ 2012-12-31 22:10 风过 无痕 阅读(5658) 评论(0) 推荐(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元 阅读全文

posted @ 2012-12-31 11:29 风过 无痕 阅读(5369) 评论(0) 推荐(0)

2012年12月28日

[转].NET平台下的Excel编程|C#操作Excel|Application和ApplicationClass的联系和区别

摘要: 出处: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 阅读全文

posted @ 2012-12-28 23:26 风过 无痕 阅读(3244) 评论(0) 推荐(0)

[转]寻找SqlHelper

摘要: *这是一篇关于寻找SqlHelper的文章,不涉及介绍,仅仅是为了简单说明SqlHelper和我的寻找过程。记得以前得到过一个原版的Sqlhelper.cs类,只是现在怎么也找不到了,记得以前是到微软下载官方企业库,然后安装上后找的(还是从网上下载的)。现在说明一下关于这个东东,省的以后再麻烦。微软的确发布过SqlHelper类库,但是在很久之前了,找到官方的了,名字叫DataAccessApplicationBlock,下载地址:http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=435下载后解压,然 阅读全文

posted @ 2012-12-28 22:13 风过 无痕 阅读(2263) 评论(0) 推荐(3)

ACCESS通用操作数据类

摘要: 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 阅读全文

posted @ 2012-12-28 22:07 风过 无痕 阅读(213) 评论(0) 推荐(0)

<转载>OleDb操作Access数据库:新增记录时获取自动编号的主键值

摘要: //打开数据库的一般方法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 阅读全文

posted @ 2012-12-28 22:03 风过 无痕 阅读(513) 评论(0) 推荐(0)

2012年9月27日

华为T8500是个垃圾

摘要: 移动搞活动的华为T8500,真是个垃圾。经常出现屏幕操作没反应的情况。 阅读全文

posted @ 2012-09-27 10:22 风过 无痕 阅读(243) 评论(0) 推荐(0)

2012年7月18日

C# winform 获取标题栏,状态栏,菜单栏的高度

摘要: MessageBox.Show("当前窗体标题栏高度"+(this.Height - this.ClientRectangle.Height).ToString());//获得当前窗体标题栏高度ClientRectangle//获取表示控件的工作区的矩形MessageBox.Show(SystemInformation.PrimaryMonitorSize.ToString()); //获取主显示器屏幕的尺寸(像素) //获取主显示器当前当前视频模式的尺寸(以象素为单位)MessageBox.Show("菜单栏高度"+SystemInformation. 阅读全文

posted @ 2012-07-18 07:23 风过 无痕 阅读(9943) 评论(0) 推荐(0)

上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 75 下一页

导航

向日葵支付宝收钱码