• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






Kevin Gao

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2012年1月15日

分享一个正则表达式帮助类
摘要: using System.Globalization;using System.Text.RegularExpressions; /// <summary> /// 正则表达式帮助类 /// </summary> public sealed class RegexHelper { private RegexHelper() { } /// <summary> /// 清除包含'字符串 /// </summary> public const string CLEAN_STRING = @"[']"; /// &l 阅读全文
posted @ 2012-01-15 10:29 Kevin Gao 阅读(321) 评论(0) 推荐(0)
 
分享一个正则表达式帮助类
摘要: using System.Globalization; using System.Text.RegularExpressions; /// /// 正则表达式帮助类 /// public sealed class Reg... 阅读全文
posted @ 2012-01-15 10:29 Kevin Gao 阅读(7) 评论(0) 推荐(0)
 
asp.net中获取网站根目录和物理路径的方法
摘要: /// <summary> /// 取得网站的根目录的URL /// </summary> /// <returns></returns> public static string GetRootURI() { string AppPath = ""; HttpContext HttpCurrent = HttpContext.Current; HttpRequest Req; if (HttpCurrent != null) { Req = HttpCurrent.Request; string UrlAuthority = 阅读全文
posted @ 2012-01-15 10:18 Kevin Gao 阅读(18475) 评论(0) 推荐(3)
 
asp.net中获取网站根目录和物理路径的方法
摘要: /// /// 取得网站的根目录的URL /// /// public static string GetRootURI() { string Ap... 阅读全文
posted @ 2012-01-15 10:18 Kevin Gao 阅读(11) 评论(0) 推荐(0)
 
分享一个收集到的文件和目录操作类FileSystemObject
摘要: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Data; using System.Web; publ... 阅读全文
posted @ 2012-01-15 10:15 Kevin Gao 阅读(6) 评论(0) 推荐(0)
 
分享一个收集到的文件和目录操作类FileSystemObject
摘要: using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Data;using System.Web; public abstract class FileSystemObject { // Methods protected FileSystemObject() { } public static string ConvertSizeToShow(int fileSize) { int num = fileSize / 0x400; if (num < 1) 阅读全文
posted @ 2012-01-15 10:14 Kevin Gao 阅读(281) 评论(0) 推荐(0)
 
Asp.net中实现多语言的Page的扩展的基类
摘要: 在开发的过程很多项目需要实现多语言,特别是外企中开发的系统一般都是好几个语言的版本,我们以前开发项目时也需要实现多语言的功能因此我们写了个Page类的扩展类,让每一个要实现多语言的页面都继承它。该类的实现如下:/// <summary>/// Summary description for WebPageBase/// </summary>public class WebPageBase : System.Web.UI.Page{ public WebPageBase() { } protected override void InitializeCulture() { 阅读全文
posted @ 2012-01-15 10:01 Kevin Gao 阅读(206) 评论(0) 推荐(0)
 
[置顶] Asp.net中实现多语言的Page的扩展的基类
摘要: 在开发的过程很多项目需要实现多语言,特别是外企中开发的系统一般都是好几个语言的版本,我们以前开发项目时也需要实现多语言的功能因此我们写了个Page类的扩展类,让每一个要实现多语言的页面都继承它。该类的实现如下:/// <summary>/// Summary description for WebPageBase/// </summary>public class WebPageBase : System.Web.UI.Page{ public WebPageBase() { } protected override void InitializeCulture() { 阅读全文
posted @ 2012-01-15 10:01 Kevin Gao 阅读(175) 评论(0) 推荐(0)
 
Asp.net中实现多语言的Page的扩展的基类
摘要: 在开发的过程很多项目需要实现多语言,特别是外企中开发的系统一般都是好几个语言的版本,我们以前开发项目时也需要实现多语言的功能 因此我们写了个Page类的扩展类,让每一个要实现多语言的页面都继承它。该类的实现如下: /// /// Summary ... 阅读全文
posted @ 2012-01-15 10:01 Kevin Gao 阅读(5) 评论(0) 推荐(0)