Server Control (HTTP, Web, Verification)

zhaozj2021-02-16  51

HTML server control

By default, the HTML element in the ASP.NET file is considered text and the page developers cannot be programmed. To make these elements can be accessed programmatically, you can analyze and process the HTML element as server control by adding the runat = "server" property.

The unique ID property allows the control to be programmed. The HTML server control must reside in the

tag that has the runat = "server" property.

Web server control definition, such as:

validation server controls listed below The property applies to all verification control ControlTovAlidate verification controls to display the display behavior of the programs for the programming ID Display specified by the input control. This property can be one of the following values, Static, Dynamic Enabled ErrorMessage when the verification fails

Validationsummary

Error information displayed in the control. It is often used to provide a variety of messages for verification controls and validationsummary controls. IsValid indicates whether the input control specified by the ControlTovAlidate property is determined as a valid TEXT verification failure to display this message in the verification control. If this property is not set, the text CompareValidator control specified in the errorMessage property is displayed in the control (hereinafter, the public property is omitted below) Description: Compare ControlTovAlidate and ValuetOCompare (can be specified) Is the size of the control ID). Operator: ValidationCompareOperator enumeration (DataTypeCheck, Equal, GreatertHan, GreaterThanequal, Lessthan, Lesththanequal, Notequal), where DataTypeCheck only verifies whether the data type of ControlTovAlidate is the same as Type (such as String).

RangeValidator control: RegularExpressionValidator control Description: determines whether the value of a pattern defined by the regular expression match RequiredFieldValidator control ValidationSummary control Description: Allow error information on all verification controls on a single location overview of the Web page (ErrorMessage for each verification control)

Attribute), based on

DisplayMode

Value of the property, the summary can be displayed as a list, a bulleted list, or a single paragraph CustomValidator control Description: Create a server-side authentication function, please verify

ServerValidate

转载请注明原文地址:https://www.9cbs.com/read-20254.html

New Post(0)