如何一次验证多个RadioButtonLists?的RSS [英] How to Validate multiple RadioButtonLists at once? RSS

查看:36
本文介绍了如何一次验证多个RadioButtonLists?的RSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

在我的Web表单中,我有多个RadioButtonLists.现在,我的要求是验证所有那些RadioButtonLists,以便用户必须选择那些RadioButtonLists中的任何一个.请根据这种情况建议我.我在同一页面中使用了一些验证控件.

在此先感谢.

Hi to all.

In my web form I''ve Multiple RadioButtonLists.Now my requirement is to validate all those RadioButtonLists in such a way that user must select any one of those RadioButtonLists.Please suggest me according to this scenario.By the way already I''m using some Validation controls in same page.

Thanks in Advance.

推荐答案

它具有属性ValidationGroup.我相信将所有单选按钮列表设置为同一组可以解决问题.试试吧.
It has a property ValidationGroup. I believe setting all the radiobuttonlist to same group could do the trick. Try out.



您必须使用JavaScript或JQuery进行客户端验证.
开始之前,您必须阅读以下文章:
http://www.w3schools.com/js/js_form_validation.asp [ http://www.shiningstar.net/articles/articles/javascript/javascriptvalidations.asp [ ^ ]

请参考以下链接:
http://forums.asp.net/t/1286011.aspx [ http://stackoverflow.com/questions/5019342/javascript-validation-for- asp-net-radiobutton-list [ ^ ]
针对asp.net单选按钮列表控件的javascript验证 [ ^ ]

这可能对您有帮助.
--Amit
Hi,
You''ll have to use JavaScript or JQuery for client side validation.
Before starting you must read these articles:
http://www.w3schools.com/js/js_form_validation.asp[^]
http://www.shiningstar.net/articles/articles/javascript/javascriptvalidations.asp[^]

Refer the links below:
http://forums.asp.net/t/1286011.aspx[^]
http://stackoverflow.com/questions/5019342/javascript-validation-for-asp-net-radiobutton-list[^]
javascript validation for asp.net radiobutton list control[^]

This may help you.
--Amit


这篇关于如何一次验证多个RadioButtonLists?的RSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆