导航

随笔分类 -  C#

摘要:得到域认证下的IOrganizationService 使用 用户名密码方式下的IOrganizationService 阅读全文

posted @ 2018-11-19 10:17 yiyishuitian 阅读(282) 评论(0) 推荐(0)

摘要://变更列名 DataTableA.Columns["原来的列名"].ColumnName="新的列名"; 阅读全文

posted @ 2018-05-22 15:51 yiyishuitian 阅读(217) 评论(0) 推荐(0)

摘要:1 this.ddlUnit.SelectedValue = id; //注意大小写,如果选中失败会显示默认值. 2 ListItem item=ddlUnit.Items.FindByValue(id); if(item != null) { item.Selected =... 阅读全文

posted @ 2017-07-17 03:11 yiyishuitian 阅读(178) 评论(0) 推荐(0)

摘要:C#:禁用combobox C#:隐藏 aspx: C#:对应的 Radio1_check Radio2_check 函数 阅读全文

posted @ 2017-04-14 13:48 yiyishuitian 阅读(247) 评论(0) 推荐(0)

摘要:JS端: C端: 阅读全文

posted @ 2017-02-23 10:59 yiyishuitian 阅读(102) 评论(0) 推荐(0)

摘要:作者:卞功鑫 转载请保留:http://www.cnblogs.com/BinBinGo/p/6400944.html 最最常用的SQL 查询的返回结果,插入到DataTable 中 阅读全文

posted @ 2017-02-15 12:53 yiyishuitian 阅读(11644) 评论(0) 推荐(0)

摘要:作者:卞功鑫 转载请保留:http://www.cnblogs.com/BinBinGo/p/6400928.html 存储过程 阅读全文

posted @ 2017-02-15 12:44 yiyishuitian 阅读(3398) 评论(0) 推荐(0)

摘要://1 连接字符串 string connectionString = "server=127.0.0.1;integrated security=true;database=MSPetShop4"; // = "server=.;uid=sa;pwd=SQL@5;database=Adv... 阅读全文

posted @ 2017-02-15 03:19 yiyishuitian 阅读(344) 评论(0) 推荐(0)

摘要://1 连接字符串 string connectionString = "server=127.0.0.1;integrated security=true;database=MSPetShop4"; // = "server=.;uid=sa;pwd=SQL@5;database=Adv... 阅读全文

posted @ 2017-02-15 02:47 yiyishuitian 阅读(837) 评论(0) 推荐(0)

摘要:作者:卞功鑫 ,转载请保留http://www.cnblogs.com/BinBinGo/p/6399847.html 阅读全文

posted @ 2017-02-15 02:17 yiyishuitian 阅读(2104) 评论(0) 推荐(0)

摘要:C#连接数据库最基本操作之sql语句 DML 阅读全文

posted @ 2017-02-15 01:34 yiyishuitian 阅读(3783) 评论(0) 推荐(0)

摘要:1.复制以下命令粘贴到以管理员权限运行的命令行程序里,回车运行(前提条件得有gacutil.exe注册工具): cd "C:\NETFX 4.0 Tools"以windows7 64 bit 为例我的程序在此文件夹下3.5 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin4.0 C:\Program Files (x86)\Micro... 阅读全文

posted @ 2017-01-18 08:28 yiyishuitian 阅读(1000) 评论(0) 推荐(0)

摘要:以上代码可以启用或者禁止 plugin 的注册 阅读全文

posted @ 2016-12-18 13:14 yiyishuitian 阅读(272) 评论(0) 推荐(0)

摘要:DataTable: if(DataTable== null || DataTable.Rows.Count == 0 ) { //为空的操作 } DataRow: if(!DataRow.IsNull("列名")) { //不为空的操作 } 阅读全文

posted @ 2016-11-01 13:26 yiyishuitian 阅读(1380) 评论(0) 推荐(0)

摘要:目录(?)[-]autocomplete有两种一种 是 jquery ui里的autocompletehttpjqueryuicomautocomplete另一种是 ASPNET AJAX Control Toolkit httpwwwajaxtoolkitnet 这个好像是只支持 webservi... 阅读全文

posted @ 2015-10-20 17:20 yiyishuitian 阅读(845) 评论(0) 推荐(0)

摘要:自从上次找到NPOI之后,根据园友提供的线索以及Google,又找到了一些开源免费的类库,所以都简单体验了一遍。主要找到以下类库:MyXls(http://sourceforge.net/projects/myxls/)Koogra(http://sourceforge.net/projects/koogra/)ExcelLibrary(http://code.google.com/p/excellibrary/)ExcelPackage(http://excelpackage.codeplex.com/)EPPlus(http://epplus.codeplex.com/)LinqToExc 阅读全文

posted @ 2012-07-14 23:19 yiyishuitian 阅读(436) 评论(0) 推荐(0)

摘要: 阅读全文

posted @ 2012-06-27 17:22 yiyishuitian 阅读(160) 评论(0) 推荐(0)

摘要:摘录自 http://www.cnblogs.com/homezzm/archive/2010/02/25/1673181.html供学习之用 最近做项目有个页面需要导入excel然后更新数据库得数据,导入导出excel我是从来都不记德,其实也没什么好记德东西(一般都是用的时候在excel中使用录制宏,嘿嘿),导入很快就写完了,测试没有问题,但拿来真实数据后就出现问题了。真实的数据如下图: 网上导入excel的文章多如牛毛,使用OLEDB查询语句都是select * from [Sheet1$] 这样,但是一个真实的数据表是不会为你写好名称的,并且excel的工作簿的数量也是不却定的,这个在程 阅读全文

posted @ 2011-04-13 12:08 yiyishuitian 阅读(546) 评论(0) 推荐(0)

摘要:摘抄自 http://www.cnblogs.com/daxia/archive/2008/01/08/1030779.html供学习之用导入导出EXCEL#region 导入导出EXCEL /**//// <summary> /// 将datatable中的数据导出到指定的excel文件中 /// </summary> /// <param name="page">web页面对象</param> /// <param name="tab">包含被导出数据的datatable对象</par 阅读全文

posted @ 2011-04-13 11:30 yiyishuitian 阅读(512) 评论(0) 推荐(0)