NET Web pages using validation controls.
NET网页中添加输入验证。
The topics in this section describe the validation controls and how to use them.
此节中的主题描述验证控件及如何使用这些控件。
However, the primary way to improve validation controls is to provide rich feedback to users.
不过,改进确认控件的主要方法是为用户提供丰富的反馈。
In addition, validation controls allow you to customize how error information is displayed to the user.
此外,验证控件还允许自定义向用户显示错误信息的方法。
Using multiple validation controls would not work in this instance because the user input must pass all tests to be valid.
由于用户输入必须通过所有测试才能视为有效,因此,在此实例中使用多个验证控件不起作用。
Because the page layout is static, multiple validation controls for the same input control must occupy different physical locations on the page.
由于页面布局是静态的,同一输入控件的多个验证控件必须占据页上的不同物理位置。
NET provides a set of validation controls that provide an easy-to-use but powerful way to check for errors and, if necessary, display messages to the user.
NET提供了一组验证控件,用于提供一种易用但功能强大的检错方式,并在必要时向用户显示错误信息。
If validation is being performed on the server, validation controls are not rendered to the page unless an error occurs and they therefore take up no space whatsoever.
如果验证是在伺服器上执行的,除非发生错误,否则验证控制项不会呈现在网页上,因此不会占用任何空间。
Make validation controls visually distinct from nonvalidation controls, whether through the typeface used in the text edit field, the border color, or the background color for the field itself.
一个基本的改进是使确认控件在视觉上与非确认控件区分开来,无论是文本编辑字段使用的字体、不同的边界颜色,甚至是字段本身不同的背景颜色。
Validation controls are not normally visible in the rendered page.
验证控件通常在呈现的页面中不可见。
Validation controls test user input, set an error state, and produce error messages.
验证控件测试用户输入,设置错误状态,并生成错误信息。
Validation controls enable you to check for a required field, to test against a specific value or pattern of characters, to verify that a value lies within a range, and so on.
验证控件可用于对必填字段进行检查,对照字符的特定值或模式进行测试,验证某个值是否在限定范围之内,等等。
Validation controls enable you to check for a required field, to test against a specific value or pattern of characters, to verify that a value lies within a range, and so on.
验证控件可用于对必填字段进行检查,对照字符的特定值或模式进行测试,验证某个值是否在限定范围之内,等等。
应用推荐