动态服务器端验证 [英] Dynamic server side validation
本文介绍了动态服务器端验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对jquery,javascript很新,我们正在构建一个包含登录表单的webapplication。要求是当用户填写无效信息时,会显示错误消息。
我包含一个示例,说明错误消息需要具有的行为
..示例..
我们试图不使用客户端验证,所以我想知道,这是否可能使用服务器端验证和一些jquery函数等?
thx!
解决方案
使用 ASP.Net验证控件 [ ^ ]如果你想从服务器端验证它们,那么你的保存按钮添加以下代码行if (Page.IsValid)
{
// 成功
}
其他
{
// 错误
}
更多关于探索ASP.NET验证控件 [ ^ ]
访问这里....
http://stackoverflow.com/questions/18022224/jquery-validation-plugin-doesnt-validate-dynamically-created-form-elements [ ^ ]
Hi,
I'm pretty new to jquery, javascript and we are building a webapplication wich contains a login form. A requirement is that when the user fills in invalid information, a errormessage shows.
I am including a example that demonstrate the behavior wich the errormessages need to have
..Example..
We are trying not to use client side validation, so i wonder, is this possible using server side validation and some jquery functions, etc?
thx!
解决方案
Hi,
Use ASP.Net Validation Controls[^] and if you want to validate them from server side then on your save button add this line of codeif (Page.IsValid) { //success } else { //error }More on Exploring ASP.NET Validation Controls[^]
visit here....
http://stackoverflow.com/questions/18022224/jquery-validation-plugin-doesnt-validate-dynamically-created-form-elements[^]
这篇关于动态服务器端验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文