Lazycode验证类

 

 

 

代码下载:http://download.csdn.net/source/2508693  

2010070214133538.png

 

ContractedBlock.gif ExpandedBlockStart.gif 代码
 
      
using System;
using Lazy.Validate;

public partial class LazyValidate : System.Web.UI.Page
{
protected void Page_Load( object sender, EventArgs e)
{

}
protected void Button1_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsNumber(TextBox1.Text.Trim()).ToString();
}
protected void Button2_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsNumberSign(TextBox1.Text.Trim()).ToString();
}
protected void Button3_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsDecimal(TextBox1.Text.Trim()).ToString();
}
protected void Button4_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsDecimalSign(TextBox1.Text.Trim()).ToString();
}
protected void Button5_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsHasCHZN(TextBox1.Text.Trim()).ToString();
}
protected void Button6_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsEmail(TextBox1.Text.Trim()).ToString();
}
protected void Button7_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsUrl(TextBox1.Text.Trim()).ToString();
}
protected void Button8_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsTel(TextBox1.Text.Trim()).ToString();
}
protected void Button9_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsQQ(TextBox1.Text.Trim()).ToString();
}
protected void Button10_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsIDCard(TextBox1.Text.Trim()).ToString();
}
protected void Button11_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsEnglish(TextBox1.Text.Trim()).ToString();
}
protected void Button12_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsTrimRow(TextBox1.Text.Trim()).ToString();
}
protected void Button13_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsMobile(TextBox1.Text.Trim()).ToString();
}
protected void Button14_Click( object sender, EventArgs e)
{
Label1.Text
= lazyValidater.IsDate(TextBox1.Text.Trim()).ToString();
}
}

 

 

posted on 2010-07-02 14:15  lazyCode 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lazycode/archive/2010/07/02/1769911.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值