asp.net 中的 MaskedEditExtender

发布于 2024-07-26 15:45:43 字数 48 浏览 6 评论 0原文

如何将MaskedEditExtender 用于应该接受网站地址的文本框? 谢谢

How can I useMaskedEditExtender for textbox that should accept address of website?
thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情绪失控 2024-08-02 15:45:43

为什么要使用MaskedEdit? 我将使用带有 RegularExpressionValidator 的文本框。

MaskedEdit 适用于数据域中具有固定格式的数据。 例如,SSID 的格式始终为 000-00-0000,电话号码(美国)为 (000) 000-0000,新的邮政编码为 <代码>00000-0000。 等等...

不适用于各种格式,例如由 RFC 管理的 URL。

Why would you use an MaskedEdit? I'd use a Textbox with a RegularExpressionValidator.

MaskedEdit is good for data that has a fixed format across your data domain. For instance the SSID is always in the format 000-00-0000, a phone number (in U.S.) is (000) 000-0000, the new zip code is 00000-0000. and so forth...

Not for a wide variant of formats like an URL, which is governed by an RFC.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文