如何显示dropdownlist的必填字段验证器错误? [英] how to display requried field validator error for dropdownlist ?
本文介绍了如何显示dropdownlist的必填字段验证器错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我现在正在做asp.net项目,即使选择
我也遇到一个问题
"--select--"选项它不会显示错误,请给出您的想法????
hi now i am doing asp.net project in this i have one problem even when i select
"--select--" option it does not display error please give your idea????
推荐答案
将验证器的InitialValue
属性设置为"--select-.
Set the validator''s InitialValue
attribute to "--select--".
这篇关于如何显示dropdownlist的必填字段验证器错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文