随笔分类 -  .net

摘要:ASDASDAS 阅读全文
posted @ 2016-07-25 14:31 高捍得 阅读(145) 评论(0) 推荐(0)
摘要:事件名 典型使用 PreInit 在启动阶段完成之后、初始化阶段开始之前引发。 使用该事件来执行下列操作: 检查 I... 阅读全文
posted @ 2012-05-02 16:39 高捍得 阅读(355) 评论(1) 推荐(0)
摘要:HttpWebRequest webrequest = (HttpWebRequest)HttpWebRequest.Create("http://www.baidu.com"); HttpWebResponse webreponse = (HttpWebResponse)webrequest.GetResponse(); Stream stream = w... 阅读全文
posted @ 2012-04-13 09:15 高捍得 阅读(561) 评论(0) 推荐(0)
摘要:先看一下官方的简单介绍: 主要特性: 1.速度快:以JSON格式 从 服务器端传回所需要的数据. 2.100万条数据,操作分页,过滤,查询 不用谢一行代码,而且速度非常快. 3.几乎不使用viewstate. 4.在客户端 渲染. 5.支持层级关系,排序,过滤,分页 6.主题更换, 7.内置了多国语言包. 下载地址:http://www.trirand.net/down... 阅读全文
posted @ 2012-03-07 14:40 高捍得 阅读(3115) 评论(1) 推荐(3)
摘要:using iTextSharp.text; using iTextSharp.text.pdf; using System.IO; public void PDF(string html) { Document dom = new Document(); //创建文档 PdfWriter.GetInstance(dom, new... 阅读全文
posted @ 2012-03-07 14:36 高捍得 阅读(270) 评论(0) 推荐(0)
摘要:应用google的应用 首先要注册一个google账号. url: 然后 开始配置 custom search url:http://www.google.com/cse/ 进到页面你会看到 页面右边有个 单击,创建自定义搜索引擎, 进入这个页面: 至于里面的细节,自己去研究吧.很简单' 配置好后, 会得到一段 js代码,这段代码 重要的部分在于:涂蓝色位置的代码(也就是 单... 阅读全文
posted @ 2012-03-01 08:58 高捍得 阅读(1186) 评论(0) 推荐(0)
摘要:二进制序列化 首先引用 using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.IO; 自定义类: [Serializable] public class person { ... 阅读全文
posted @ 2012-02-03 15:42 高捍得 阅读(182) 评论(0) 推荐(0)
摘要:一、//TransmitFile实现下载 protected void Button1_Click(object sender, EventArgs e) { Response.ContentType = "application/x-zip-compressed"; Response.AddHeader("Content-Disposition", "attach... 阅读全文
posted @ 2011-11-22 10:00 高捍得 阅读(231) 评论(0) 推荐(0)
摘要:<script> var online = new Array(); </script> <script src="http://webpresence.qq.com/getonline?Type=1&QQ号:”></script> <script type="text/javascript"> $(docume... 阅读全文
posted @ 2011-11-09 11:58 高捍得 阅读(243) 评论(0) 推荐(0)
摘要:private DataSet GetExcelData(string str) { string strCon = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + str + ";Extended Properties=\"Excel 12.0;HDR=YES\""; OleDbConn... 阅读全文
posted @ 2011-11-08 10:35 高捍得 阅读(362) 评论(0) 推荐(0)
摘要:跨浏览器解析xml文件 xml文件 为 a.xml: <?xml version="1.0" encoding="utf-8"?> <Root> <Tree id="0">数目0</Tree> <Tree id="1">数目1</Tree> <Tree id="2">数目2</Tree> </Root> 代码: <%... 阅读全文
posted @ 2011-10-16 10:13 高捍得 阅读(229) 评论(0) 推荐(0)