上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页

2014年10月21日

IS支持解析json

摘要: 1. MIME设置:在IIS的站点属性的HTTP头设置里,选MIME 映射中点击”文件类型”-”新类型”,添加一个文件类型:关联扩展名:*.json内容类型(MIME):application/x-javascript 2. Script Map Handler设置:还是在IIS的站点属性里,”主目... 阅读全文

posted @ 2014-10-21 20:41 AlexGeng 阅读(335) 评论(0) 推荐(0) 编辑

2014年9月30日

C# 字典 Dictionary 遍历

摘要: using System;using System.Collections.Generic;public class Example{ public static void Main() { //一、创建泛型哈希表,然后加入元素 ... 阅读全文

posted @ 2014-09-30 16:28 AlexGeng 阅读(105211) 评论(1) 推荐(4) 编辑

2014年2月17日

关于c# 发射的调用并进行缓存

摘要: private static object CreateObject(string AssemblyPath, string classNamespace) { object objObject = DataCache.GetCache(classNamespace); if (objObject == null) { try { objObject = Assembly.Load(AssemblyPath).Crea... 阅读全文

posted @ 2014-02-17 16:33 AlexGeng 阅读(362) 评论(0) 推荐(1) 编辑

2013年10月9日

c# dataTable 合并两个列到一个新列中

摘要: public static DataTable UniteDataTableColumns(DataTable dt, String newColumnName, string ColumnName1, string ColumnName2) { //汇总的表达式 string expression = ""; expression = String.Format("{0}+'('+{1}+')'", ColumnName1, ColumnName2); ... 阅读全文

posted @ 2013-10-09 09:17 AlexGeng 阅读(10543) 评论(0) 推荐(4) 编辑

2013年9月21日

判断DataTable某字段是否包含某值

摘要: // /// 判断DataTale中判断某个字段中包含某个数据 /// /// /// /// /// public static Boolean IsColumnIncludeData(DataTable dt, String columnName, string fieldData) { if(dt==null) { return false; } e... 阅读全文

posted @ 2013-09-21 17:06 AlexGeng 阅读(20808) 评论(1) 推荐(2) 编辑

2013年9月4日

C# GZip对字符串压缩和解压

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.IO.Compression;using System.Data;namespace Lis2013HISWSTest{ public class ZipHelper { /// /// 解压 /// /// /// public static DataSet GetDat... 阅读全文

posted @ 2013-09-04 11:41 AlexGeng 阅读(16537) 评论(4) 推荐(3) 编辑

JAVA对字符串的压缩与解压缩

摘要: import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.IOException;import java.util.zip.GZIPInputStream;import java.util.zip.GZIPOutputStream;import java.util.zip.ZipEntry;import java.util.zip.ZipInputStream;import java.util.zip.ZipOutputStream;public class ZipUtils 阅读全文

posted @ 2013-09-04 11:39 AlexGeng 阅读(55384) 评论(1) 推荐(3) 编辑

2013年8月14日

C#中对 XML节点进行添加,删除,查找和删除操作

摘要: 从网上整理所得XMLDocument来操作XML比较简单,虽然有时效率不是很高。代码如下已知有一个XML文件(bookstore.xml)如下: Oberon's Legacy Corets, Eva 5.95 1、往节点中插入一个节点: XmlDocument xmlDoc=new XmlDocument(); xmlDoc.Load("bookstore.xml"); XmlNode root=xmlDoc.SelectSingleNode("bookstore");//查找 XmlElement xe1=xmlDoc.CreateEleme 阅读全文

posted @ 2013-08-14 10:41 AlexGeng 阅读(565) 评论(0) 推荐(0) 编辑

2013年8月6日

VS2010在C#头文件中添加文件注释的方法(转)

摘要: 步骤:1.VS2010 中找到(安装盘符以D盘为例)D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Class.zip2.在Class.cs 文件中原有代码如下:using System;using System.Collections.Generic;$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;$endif$using System.Text;namespace $ro 阅读全文

posted @ 2013-08-06 15:12 AlexGeng 阅读(426) 评论(0) 推荐(0) 编辑

2013年7月4日

DevExpress gridcontrol学习知识点

摘要: .//允许自动合并单元格gv1.OptionsView.AllowCellMerge = true;设置某列不合并选中该列,在OptionsColumns-->AllowMerge中设置为false即可2.绑定点击columns,选择添加创建新的gridcolunmn,fieldName:数据库中要绑定的字段Caption:描述3.使单元格不可编辑。gridcontrol -->gridview -->OptionsBehavior -->Editable=false4.获取选定行,指定列单元格的内容private string GetSelectOID() { int 阅读全文

posted @ 2013-07-04 09:42 AlexGeng 阅读(758) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页

导航