[英]MaskedEditExtender in asp.net
How can I useMaskedEditExtender for textbox that should accept address of website? 如何在应接受网站地址的文本框中使用MaskedEditExtender? thanks
谢谢
Why would you use an MaskedEdit
? 为什么要使用
MaskedEdit
? I'd use a Textbox with a RegularExpressionValidator
. 我会使用带有
RegularExpressionValidator
的Textbox。
MaskedEdit
is good for data that has a fixed format across your data domain. MaskedEdit
适用于整个数据域中具有固定格式的数据。 For instance the SSID is always in the format 000-00-0000
, a phone number (in US) is (000) 000-0000
, the new zip code is 00000-0000
. 例如,SSID始终为
000-00-0000
格式,电话号码(以美国为单位)为(000) 000-0000
,新的邮政编码为00000-0000
。 and so forth... 等等...
Not for a wide variant of formats like an URL, which is governed by an RFC. 不适用于受RFC控制的URL之类的多种格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.