Loading

摘要: 1.HTML页面<tdalign="left"><asp:DropDownListID="ddlOne"runat="server"></asp:DropDownList><asp:DropDownListID="ddlTwo"runat="server"></asp:DropDownList></td>ddlOne的绑定这里就不说了,后台直接绑定即可,关键是选择ddlOne的时候页面无刷新的级联ddlTwo。首先添加ddl 阅读全文
posted @ 2011-07-28 11:55 一只小青蛙 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Diagnostics;usingSystem.IO;usingSystem.Globalization;namespaceHandFree.DAL{publicclassDebuggerWriter:TextWriter{privateboolisOpen;privatestaticUnicodeEncodingencoding;privatereadonlyintlevel;privatereadonlystri 阅读全文
posted @ 2011-05-16 18:11 一只小青蛙 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--protectedvoidPage_Load(objectsender,EventArgse){ArrayListmyarray=newArrayList();myarray.Add("1.学习园地");myarray.Add("2.交流论坛");myarray.Add("3.帮助");//将数组添加到缓存中——使用Add方法Cache.Add("Category",myarray,null,Da 阅读全文
posted @ 2011-01-19 14:56 一只小青蛙 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1.修改private System.Windows.Forms.Timer timer1;为private System.Timers.Timer timer1; 修改this.timer1 = new System.Windows.Forms.Timer(this.components)为this.timer1 = new System.Timers.Timer()2.系统默认的服务名称为service1,如何你想修改成自己的,可以修改serviceInstaller1的ServiceName3.读取配置文件的方式,string mail=mail.MailFrom = ChinaNet5 阅读全文
posted @ 2010-10-12 14:38 一只小青蛙 阅读(1951) 评论(0) 推荐(0) 编辑
摘要: 页面引用用户控件的时候,用于该用户控件的JS必须放到用户控件的后面,不能在头部引用,html页面是无需编译的,但用户控件需要,所以如果把JS写在头部则会出现JS无法找到ID的。 阅读全文
posted @ 2010-09-06 16:27 一只小青蛙 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#region过滤非法字符publicstaticstringencoding(stringsrc){if(src==null)return"";StringBuilderresult=newStri... 阅读全文
posted @ 2010-09-02 09:04 一只小青蛙 阅读(1087) 评论(0) 推荐(0) 编辑
摘要: 使用指定的替换值替换 NULL。语法ISNULL ( check_expression , replacement_value ) 参数check_expression将被检查是否为 NULL的表达式。check_expression 可以是任何类型的。replacement_value在 check_expression 为 NULL时将返回的表达式。replacement_value 必须与 ... 阅读全文
posted @ 2010-07-26 09:11 一只小青蛙 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--       stringpicUrl=Server.MapPath(Image1.ImageUrl);System.IO.FileInfofile=newSystem.IO.FileInfo(pic... 阅读全文
posted @ 2010-07-20 10:51 一只小青蛙 阅读(219) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/xiucool/archive/2008/11/28/3397182.aspx 阅读全文
posted @ 2010-07-20 10:11 一只小青蛙 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 越来越多的人利用开源组件 Lucene来开发自己的搜索引擎。在数据量不大的情况下,我们不会太关注创建索引的效率;但是,但数据达到一定的数量是,我们就不得不考虑如何提高创建索引的性能,以缩短索引创建的时间。我们是用Lucene中提供的类IndexWriter来创建索引的,所以我们不妨先看一看IndexWriter类中关系到索引创建效率的几个方法。一、SetMergeFactor(合并因子)SetMe... 阅读全文
posted @ 2010-07-20 10:04 一只小青蛙 阅读(4025) 评论(1) 推荐(0) 编辑