DropDownList没有默认值 [英] DropDownList w/o default
本文介绍了DropDownList没有默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将DropDownList的选择留空?我们的应用程序
需要一些ddl',它们保持空白而没有初始值,所以
我们可以为它们添加一个RequiredFieldValidator。
问候,
Michael
Hi,
is it possible to leave a DropDownList''s selection empty? Our application
requires for some ddl''s that they are kept blank w/o an initial value so
that we can add a RequiredFieldValidator to them.
Regards,
Michael
推荐答案
通常这是通过添加一个adtional条目来完成的一个文本,如
"(请选择一个值)"
Patrice
-
" Michael Groeger" <去********* @ web.de>一个écritdansle message de
新闻:Oj ************** @ TK2MSFTNGP15.phx.gbl ...
Generally this is done by adding an adtional entry with a text such as
"(Please select a value)"
Patrice
--
"Michael Groeger" <go*********@web.de> a écrit dans le message de
news:Oj**************@TK2MSFTNGP15.phx.gbl...
是否可以将DropDownList的选择留空?我们的应用程序需要一些ddl',它们保持空白而没有初始值,所以我们可以为它们添加一个RequiredFieldValidator。
问候,
Hi,
is it possible to leave a DropDownList''s selection empty? Our application
requires for some ddl''s that they are kept blank w/o an initial value so
that we can add a RequiredFieldValidator to them.
Regards,
Michael
嗨迈克尔
尝试禁用并启用ur condation中的验证器可能是有效的
" Michael Groeger"写道:
hi Michael
try to disable and enable ur validator in ur condation may be it work
"Michael Groeger" wrote:
是否可以将DropDownList的选择留空?我们的应用程序需要一些ddl',它们保持空白而没有初始值,所以我们可以为它们添加一个RequiredFieldValidator。
问候,
Hi,
is it possible to leave a DropDownList''s selection empty? Our application
requires for some ddl''s that they are kept blank w/o an initial value so
that we can add a RequiredFieldValidator to them.
Regards,
Michael
有些人,包括我自己,更喜欢在绑定的数据表上进行操作。
Eliyahu
" Patrice" <无**** @ nowhere.com>在消息中写道
news:uE ************** @ TK2MSFTNGP14.phx.gbl ...
Some people, including myself, prefer doing it on the bound datatable.
Eliyahu
"Patrice" <no****@nowhere.com> wrote in message
news:uE**************@TK2MSFTNGP14.phx.gbl...
一般来说这是通过添加带有文字的adtional条目,例如
(请选择一个值)
Patrice
-
Michael Groeger <去********* @ web.de> écritdansle message de
新闻:Oj ************** @ TK2MSFTNGP15.phx.gbl ...
Generally this is done by adding an adtional entry with a text such as
"(Please select a value)"
Patrice
--
"Michael Groeger" <go*********@web.de> a écrit dans le message de
news:Oj**************@TK2MSFTNGP15.phx.gbl...
是否可以将DropDownList的选择留空?我们的
应用程序需要一些ddl',它们保持空白而没有初始值,所以我们可以为它们添加一个RequiredFieldValidator。
问候,
Michael
Hi,
is it possible to leave a DropDownList''s selection empty? Our application requires for some ddl''s that they are kept blank w/o an initial value so
that we can add a RequiredFieldValidator to them.
Regards,
Michael
这篇关于DropDownList没有默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文