摘要: 1.整个页面的判断 foreach(Control ctl in this.Controls[1].Controls){ if(ctl.GetType().Name=="TextBox") { TextBox tb =new TextBox(); tb=(TextBox)this.FindControl(ctl.ID); if(tb.Text==string.Empty) { Re... 阅读全文
posted @ 2007-08-01 17:32 nestea 阅读(718) 评论(0) 推荐(0) 编辑
摘要: 一、提交的内容在当前页面中处理,防止刷新当前页面再次提交protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { AdoSql AddComent = new AdoSql(); AddComent.Add_Input_Coment(this.GetNewsID(), th... 阅读全文
posted @ 2007-07-31 14:50 nestea 阅读(2722) 评论(2) 推荐(0) 编辑
摘要: HKCU\Software\Microsoft\VisualStudio\8.0\FileMRUList <--- File list HKCU\Software\Microsoft\VisualStudio\8.0\ProjectMRUList <--- Project list 阅读全文
posted @ 2007-07-31 14:00 nestea 阅读(859) 评论(2) 推荐(0) 编辑
摘要: using System.Text.RegularExpressions; string input = "abc123_";Regex regex = new Regex(@"^[A-Za-z0-9]+$");if (!regex.Match(input ).Success){ Response.Write(""); return;} Regex regextel... 阅读全文
posted @ 2007-07-31 10:01 nestea 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 方法一: 方法二: 一来先考虑使用AJAX,后网上随便一搜索,知道大概怎么回事情,其实很简单,何必想那么复杂。但是搜索到的内容基本上都有些小错误,修改一下。可以这样弄,更简单!汗!记号,免得忘记了!这个是点图片即刷新当前验证码。其实无论ASP还是ASP.net都一样的。 阅读全文
posted @ 2007-07-30 11:30 nestea 阅读(251) 评论(0) 推荐(0) 编辑
摘要: LIKE 关键字搜索与指定模式匹配的字符串、日期或时间值。有关更多信息,请参见数据类型。LIKE 关键字使用常规表达式包含值所要匹配的模式。模式包含要搜索的字符串,字符串中可包含四种通配符的任意组合。 通配符 含义 % 包含零个或更多字符... 阅读全文
posted @ 2007-04-27 19:07 nestea 阅读(305) 评论(0) 推荐(0) 编辑