自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 创建自定义 HTTP 模块类

public class HelloWorldModule : IHttpModule{    public HelloWorldModule()    {    }    public String ModuleName    {        get { return "HelloWorldModule"; }    }    // In the Init function, regist

2010-01-18 15:46:00 217

原创 JS的正则表达式

//校验是否全由数字组成 [code] function isDigit(s) { var patrn=/^[0-9]{1,20}$/; if (!patrn.exec(s)) return false return true } [/code] //校验登录名:只能输入5-20个以字母开头、可带数字、“_”、“.”的字串 [code] function isRegisterUse

2008-06-18 09:39:00 230

原创 .net验证图片做法

private void ShowImg(string colorf,string colorb) { //colorf=FF0000&colorb=EFF3FF Random ran = new Random(); int intRandom = ran.Next(10001, 99999);

2008-06-17 17:00:00 256

原创 中国身份证号码验证,支持15,18位

/// /// 验证身份证号码 /// /// 身份证号码 /// 验证成功为True,否则为False public static bool CheckIDCard(string Id) { if (Id.Length == 18) {

2008-06-17 16:32:00 403

转载 C#实现所有经典排序算法

class SelectionSorter { private int min; public void Sort(int[] arr) { for (int i = 0; i < arr.Length - 1; ++i) {

2008-06-17 16:01:00 267

转载 C# 中随机生成字母

protected void Button1_Click(object sender, EventArgs e) { Response.Write(GenerateRandom(6).ToLower().ToString()); } private static char[] constant = { a, b, c,

2008-06-17 15:50:00 994

转载 ASP.NET 2.0防止同一用户同时登陆

放在登陆成功的地方:  string key = TextBox1.Text; //用户名文本框设为cache关键字   string uer = Convert.ToString(Cache[key]); //读取cache中用户相应的值   //判断cache中是否有用户的信息,如果没有相关的值,说明用户未登陆   if (uer == null || uer == Strin

2008-06-17 15:28:00 166

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除