自定义验证控件 customvalidator的使用小例
来源:互联网 发布:汉诺塔问题 c语言 编辑:程序博客网 时间:2024/05/17 09:42
<asp:customvalidator id="CustomValidator1" runat="server" ControlToValidate="txtEmail" Display="Dynamic"
ErrorMessage="该名称已被占用!" ClientValidationFunction="checkEmail"></asp:customvalidator>
//客户端验证方法
<script language="javascript">
function checkEmail(source,arguments)
{
var response = RegisterInfo.checkEmail(arguments.Value);//Ajax方法
if (response.value == 1)
{
arguments.IsValid = true;
}
else if(response.value == 0)
{
arguments.IsValid = false;
}
}
</script>
这样的效果和.net的其它验证控件效果一样,当然,也可以使用服务器端的方法验证
- 自定义验证控件 customvalidator的使用小例
- CustomValidator自定义控件的使用
- CustomValidator自定义验证控件
- 自定义客户端验证控件 CustomValidator
- CustomValidator自定义检测控件的使用
- Asp.net自定义验证控件CustomValidator 的使用方法
- CustomValidator控件的使用
- CustomValidator控件的使用
- customvalidator控件的使用
- CustomValidator验证控件 的使用方法
- CustomValidator验证控件 的使用方法
- checkboxlist 选择为空时的判断(customvalidator[用户自定义验证控件]的应用)
- checkboxlist 选择为空时的判断(customvalidator[用户自定义验证控件]的应用):
- 自定义判断控件customvalidator
- 验证控件的使用:一步一步学注册——CustomValidator 控件
- 使用CustomValidator进行客户端的验证
- asp.net验证输入框字符的长度(使用CustomValidator控件)
- 在使用CustomValidator控件验证调用客户端时注意事项
- 撤消功能的实现
- 一個女孩寫的經典程序!!! - -
- 在GetRecordFromPage(铁拳,sunjianhua_kki@sina.com)的基础上增加rowcount
- Vista CTP 5308 IE7 的测试
- 蜂蜜的食用方法
- 自定义验证控件 customvalidator的使用小例
- XJTL
- 几个比较著名搜索引擎的网站登记入口
- 让DropDownList绑定系统颜色
- ASP.NET验证控件祥解
- XJTL
- Blog日历表代码
- 将枚举绑定服务器控件和Html控件
- AJAX在业务系统中的使用的一个例子