博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月20日

摘要: html: 省份<asp:DropDownList ID="dropProvince" runat="server" AutoPostBack="True" onselectedindexchanged="dropProvince_SelectedIndexChanged"> <asp:ListItem Text="湖南" Value="1"></asp:ListItem> <asp:ListItem Text="湖北&qu 阅读全文

posted @ 2012-11-20 11:12 Adam哥 阅读(165) 评论(0) 推荐(0) 编辑

摘要: string url = "http://www.baidu.com/index.htm"; System.Net.WebRequest wReq = System.Net.WebRequest.Create(url); System.Net.WebResponse wResp = wReq.GetResponse(); System.IO.Stream respStream = wResp.GetResponseStream(); string html = string.Empty; using (System.IO.StreamReader reader = new 阅读全文

posted @ 2012-11-20 10:56 Adam哥 阅读(133) 评论(0) 推荐(0) 编辑

2011年9月21日

摘要: http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudioSecret.aspx 阅读全文

posted @ 2011-09-21 08:43 Adam哥 阅读(231) 评论(0) 推荐(0) 编辑

2011年9月20日

摘要: http://msdn.microsoft.com/zh-cn/library/ms162169.aspx编辑器加载中...SQL Server 管理对象 (SMO) 是专为对管理 MicrosoftSQL Server 所涉及的各个方面进行编程而设计的对象集合。SQL Server 复制管理对象 (RMO) 是一个用于封装 SQL Server 的复制管理功能的对象集合。本节包含以下信息:概述 (SMO)SMO 入门准备使用 SMOSMO 对象模型编程语言SMO 中的向后兼容性创建 SMO 程序编程特定的任务SMO 操作指南主题 阅读全文

posted @ 2011-09-20 21:05 Adam哥 阅读(1233) 评论(0) 推荐(0) 编辑

2011年4月26日

摘要: <script type="text/javascript"> function HashTable() { this._hashtable = {}; if (typeof (_hashtable_initialized) == "undefined") { HashTable.prototype.Add = function(key, value) { if (key in this._hashtable) { return false; } this._hashtable[key] = value; return true; } Has 阅读全文

posted @ 2011-04-26 21:24 Adam哥 阅读(411) 评论(0) 推荐(0) 编辑

2011年3月21日

摘要: /// <summary> /// 转换为静态html /// </summary> public void transHtml(string path, string outpath) { Page page = new Page(); StringWriter writer = new StringWriter(); page.Server.Execute(path, writer); FileStream fs; if (File.Exists(page.Server.MapPath("") + "\\" + outpath 阅读全文

posted @ 2011-03-21 16:33 Adam哥 阅读(309) 评论(0) 推荐(0) 编辑

2011年3月11日

摘要: jquery each循环,要实现break和continue的功能:break----用return false;continue --用return ture; 阅读全文

posted @ 2011-03-11 14:47 Adam哥 阅读(60382) 评论(4) 推荐(9) 编辑

2011年3月10日

摘要: var txb = document.getElementById(inputId); txb.focus(); var t = txb.createTextRange(); t.moveStart('character', inputVal.length); t.collapse(true); t.select(); 阅读全文

posted @ 2011-03-10 14:13 Adam哥 阅读(213) 评论(0) 推荐(0) 编辑

2011年2月18日

摘要: 提交搜索表单 Sqlite数据库的加密 1、创建空的sqlite数据库。 //数据库名的后缀你可以直接指定,甚至没有后缀都可以 //方法一:创建一个空sqlite数据库,用IO的方式 FileStreamfs=File.Create(“c:\\test.db“); //方法二:用SQLiteConnection SQLiteConnection.CreateFile(“c:\\test.db“);创建的数据库是个0字节的文件。2、创建加密的空sqlite数据库 //创建一个密码为password的空的sqlite数据库 SQLiteConnection.CreateFile(“c:\\tes. 阅读全文

posted @ 2011-02-18 18:54 Adam哥 阅读(13435) 评论(2) 推荐(3) 编辑

2011年2月11日

摘要: NoSQL数据库:Cassandra、Hadoop/HBase、CouchDB、MongoDB、Membase、memcachedb、Neo4J以及FlockDB 阅读全文

posted @ 2011-02-11 11:20 Adam哥 阅读(556) 评论(2) 推荐(0) 编辑

counter