本文介绍了条件自定义验证客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 嗨 是否存在条件客户端验证,例如ex。 已完成部分 我有一个包含年份的绑定下拉列表,在页面加载期间查询年份并选择用户已保存的年份,请说2011。 我的问题是我要验证用户没有选择空白项目。 喜欢 2010 2011 2012 2013​​ 编辑: 忘记了条件部分 数据源来自List,在List的最后一个条目我添加了Others,这意味着数据库中不存在年份,用户可以添加他不想的年份。如果用户选择其他将显示另一年的文本框,然后我想检查是否知道是否有条件,如果用户只选择现有年份o其他。 PS:抱歉我的英语不好解决方案 HiDoes a Conditional Client side validation exist like for ex.done partI have a bind dropdownlist which contains years, during the page load it queries the year and select the year which the user have saved lets say "2011".My problem is I want to validate that the user didn't choose a blank item.like"""2010""2011""2012""2013"EDIT:forgot the Conditional partThe Datasource comes from a List and at the last entry of the List I've added "Others" which means that the year didn't exist on the database, user can add the year that he wan't. If the user select Others a textbox for the other year will be visible and then I want to check if know if there is a condition if user only select existing year o Other.PS: sorry for my bad English 解决方案 这篇关于条件自定义验证客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 05:26
查看更多