摘要: using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace Bus... 阅读全文
posted @ 2014-08-29 16:22 HSHE 阅读(424) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Xml.Linq;using System.IO;namespace MySkinDemo{ public partial class Form1 : Form { public Form1() ... 阅读全文
posted @ 2012-08-14 09:22 HSHE 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1.Oracle递归查询2.SqlServer递归查询 with cte as ( select t.id,t.name,t.parentId from dbo.Department t where t.id='2' union all select k.id,k.name,k.parentId from dbo.Department k inner join cte c on c.id = k.parentId )select * from cte 阅读全文
posted @ 2012-08-09 17:55 HSHE 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 导出exp username/password@database file=f:\file.dmp log=f:\file.log导入imp username/password@database file=f:\file.dmp log=f:\file.log full=y说明:username为数据库用户名, password为数据库密码 database为主数据库名称 file为选择要导出(导入)的文件所存放的位置 full=y 是否导出所有注意:导入数据时,需将被导入对象赋予DBA权限 阅读全文
posted @ 2012-07-16 18:04 HSHE 阅读(114) 评论(0) 推荐(0) 编辑
摘要: JSON定义 JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式,易于阅读和编写,同时也易于机器解析和生成。它基于ECMA262语言规范(1999-12第三版)中JavaScript编程语言的一个子集。 JSON采用与编程语言无关的文本格式,但是也使用了类C语言(包括C, C++, C#, Java, JavaScript, Perl, Python等)的习惯,这些特性使JSON成为理想的数据交换格式。JSON的结构基于下面两点1. "名称/值"对的集合 不同语言中,它被理解为对象(object),记录(record),结构(str 阅读全文
posted @ 2012-07-16 11:46 HSHE 阅读(144) 评论(0) 推荐(0) 编辑
摘要: http://js.clicki.cc/ 阅读全文
posted @ 2011-11-24 11:26 HSHE 阅读(256) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/yuzifen/article/details/6774672 阅读全文
posted @ 2011-11-14 10:40 HSHE 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 本来只在Web.config下配置了一条:<system.web> <httpHandlers> <add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/> </httpHandlers></system.web>只需要在以下节点处再添加一条带上一个name属性就可以用IIS6.1发布了:<system.webServer><handlers> <add na 阅读全文
posted @ 2011-09-14 16:06 HSHE 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 方法一: //前一个是过滤字段,后面是排序字段(这儿可以升序和降序排序默认asc) DataRow[] rows = dt.Select("", "num Asc"); //这个是克隆原来的DataTable DataTable tempDataTable = dt.Clone(); //清空不用说了吧 tempDataTable.Clear(); //把排好序的datarow要用导入行的方式,DataTable.ImportRow(DataRow) foreach (DataRow row3 in rows) tempDataTable.ImportR 阅读全文
posted @ 2011-03-31 15:57 HSHE 阅读(450) 评论(0) 推荐(0) 编辑