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

2009年9月30日

摘要: Regex R =new Regex("字符串1|字符串2|字符串3|字符串4|字符串5|'",RegexOptions.IgnoreCase); 字符串之间用"|"符号隔开即可 RegexOptions.IgnoreCase 不分大小写 阅读全文

posted @ 2009-09-30 11:01 烈火123 阅读(129) 评论(0) 推荐(0) 编辑

2009年9月25日

摘要: select top 每页显示的记录数 * from topic where id not in (select top (当前的页数-1)×每页显示的记录数 id from topic order by id desc) order by id desc select top 每页显示的记录数... 阅读全文

posted @ 2009-09-25 23:43 烈火123 阅读(151) 评论(0) 推荐(0) 编辑

摘要: template.htm模板页源码: $title$ $title$ 内容:$content$ 51aspx.com 版权所有 Default.aspx页面源码: ... 阅读全文

posted @ 2009-09-25 23:31 烈火123 阅读(119) 评论(0) 推荐(0) 编辑

2009年9月23日

摘要: 1. using System; 2. using System.Collections.Generic; 3. using System.Linq; 4. using System.Web; 5. using System.Net; 6. ... 阅读全文

posted @ 2009-09-23 23:17 烈火123 阅读(133) 评论(0) 推荐(0) 编辑

摘要: --> 在web.cofig文件中的 节点里加上上面的代码就可以了. 阅读全文

posted @ 2009-09-23 22:08 烈火123 阅读(138) 评论(0) 推荐(0) 编辑

2009年9月17日

摘要: using (WebClient web = new WebClient()) { web.Credentials = CredentialCache.DefaultCredentials;//获取或设置用于对向Internet资源的请求进行身份验证的网络凭据。 Byte[] pageDat... 阅读全文

posted @ 2009-09-17 18:20 烈火123 阅读(151) 评论(0) 推荐(0) 编辑

2009年9月16日

摘要: HttpContext.Current.Request.PhysicalApplicationPath 配置文件中内容: 从配置文件中读取完整链接字符串 : string connStr = ConfigurationManager.AppSetting... 阅读全文

posted @ 2009-09-16 22:20 烈火123 阅读(147) 评论(0) 推荐(0) 编辑

2009年9月15日

摘要: string类型数字可以直接使用 "" " ="号比较, 不用转换成int类型 阅读全文

posted @ 2009-09-15 22:21 烈火123 阅读(1139) 评论(0) 推荐(0) 编辑

2009年8月27日

摘要: 方法1: //截取指定长度字符串 public static string getStr(string s,int l) { string temp=s; if(Regex.Replace(temp,"[/u4e00-/u9fa5]","zz",RegexOptions... 阅读全文

posted @ 2009-08-27 19:21 烈火123 阅读(156) 评论(0) 推荐(0) 编辑

2009年7月26日

摘要: 字段名 is null 如 SELECT u_name,u_pwd FROM users WHERE u_nes is null 阅读全文

posted @ 2009-07-26 18:46 烈火123 阅读(185) 评论(0) 推荐(0) 编辑