ADROTATOR control defines the Adrotator control: Specify the referenced data file by the AdvertisementFile property. Among the XML files, this XML format is; Advertising graphics URL imageURL> required to display URL NaviGateURL> Description text alternatetext> keyword keyword> Show IMPRESSIONS > Ad> advertisements>
Calendar Control Calendar Control
The Button Control Button control will be parsed after execution to become
The two spaces that CHECKBOX and CheckBoxList controls will be parsed into code. AutoPostBack = "True | False" Text = "label" TextAlign = "Right" Left "Checked =" True | False "OnCheckedChanged =" OnCheckedChangedMethod "/> pay attention The autopostback property of the CheckBox control, when the AutoPostBack property is set to True, click the checkbox control, and will be automatically submitted, and perform the event handles specified in OnClick or onCheckedChanged time. If you do not set the autopostback value to True, use Onclick Or OnCheckedChanged event programs will report an error. CHECKBOXLIST's Items property indicates a collection of checkboxlist subtries (you can be as a Checkbox control). If the child is selected, then the selected property of the child should be true, so you only need one cycle. To detect the selected property of the child, you can determine if the child is selected. Use the checkboxlist control, by setting the corresponding attribute, the program can also control its typographic style. RepeatColumns property: Set (or get) a line to display several Item Item REPEATDIRECTION Property: Setting (or acquired) the direction of the arrangement, it has two attribute values, Vertical (longitudinal arrangement) and Horizontal, the default value is VerticalRepeatlayout property: Setting (or get) the typesetting design is TABLE or Flow The default is TABLE.
Specific Example of these attributes: (1) Set RepeatColumns property to 2, RepeatDirection property is Vertical, RepeatLayout property Table when: checkbox0 ask: listitem> checkbox1 ask: listItem> checkbox2 ask: listItem> Checkbox3 asp : ListItem> CheckBox4 asp: ListItem> CheckBox5 asp: ListItem> asp: CheckBoxList> (2) when RepeatColumns to 3, RepeatDirection is Horizontal, RepeatLayout when Flow is: CheckBox0 asp: ListItem> CheckBox1 asp: ListItem > checkbox2 ask: listItem> checkbox3 ask: listItem> checkbox4 ask: listItem> checkbox5 ask: listItem> < / asp: checkboxlist> Radiobutton and RadiobuttonList control The relationship between the Radiobutton control and the RadiobuttonList control is equivalent to the relationship between the Checkbox control and CheckBoxList. The Radiobutton control and the RadiobuttonList control will be parsed as code In normal HTML, Radio and Checkbox have great similarity on how to use, so control Radiobutton (RadiobuttonList) and control CheckBox (checkboxlist) The method of use is also small. Note that the GroupName group name is used for many radiobutton. Ensure that only one button in each group is selected
Image and ImageButton Control Image and ImageButton control are ultimately resolved as code . Image The control is just a simple completion of an image display task. Its main attributes are: ImageURL: Set (or acquired) Image UrLalternateText: Set (or get) the text appears in the image location when the image is not downloaded. ImageAlign: Set (or acquired) Image Image in the parent container ImageButton control not only has the main properties of the image control, but also because it belongs to Button class control, it also has all the features of Button class control, the most obvious The characteristics are to support event processing. ImageButton supported events with onclick, oncommand, onmouseover, onmouseout.
HyperLink and LinkButton control HyperLink and LinkButton control will eventually resolve to code control definition: NavigateURL = "URL" text = "HyperLinkText" ImageURL = "URL" target = "window" /> NavigateURL attribute: indicating that HyperLink control requires link to the URL address imageURL property: Represents pictures on the hyperlink. This is optional. If this property is not defined, the text will be displayed on the link will appear. Text attribute: When the imageurl property is set, the illustrative text representing the picture: If the imageurl property is not set, the text pointed by the text will be displayed as a link text: indicating that the HyperLink control needs to be linked to the link URL Address ImageURL Attribute: Represents images on the hyperlink, which is optional. If this property is not defined, the text setting will be displayed on the link. Text Property: When the ImageURL property is set, the illustrative text representing the picture: If the imageurl property is not set, the text specified by Text will display the Target property as a link text indicating that the window name of the LinkButton control is different from the HyperLink control. The point is that the HyperLink control is only a hyperlink to which a URL pointing is generated: the LinkButton control is different. It belongs to the Button class control, which supports event processing, so it does not have a NavigateURL property, and its URL link function is mainly the LinkButton control that is completed by an event to support OnClick, an OnCommand event. The use of the LinkButton control is very similar to the Button control.
DropDownList and ListBox control ListBox DropDownList control and control will ultimately be resolved be custom code
Label control
Panel control
PlaceHolder control definition method Verification control judgment, for example, if you need to verify that the data program code in TextBox is as follows: strTextBox = Request.form ("TextBox" if not iSempty (StrtextBox ) THEN 'verification success Else' verification failed END IF
This code is merely verified whether it has entered data in textbox. If you need to verify that the illegal characters are included in the input data, whether it is within a specified range, then a large pile of IF statement is required to determine if it is necessary to judge the condition Many of these IF codes are very long ASP.NET provides a series of verification controls to check if the input data is legal, it is very simple, but the function is very powerful control RequiredFieldValidator: Check if the user has entered CompareValidator: Checks the user if the user has entered the RangeValidator: Check if the user enters the data in a given largest, minimum range, the minimum, the minimum value ranges, check whether the data entered by the user is legal. CustonValidator: Customized Validation Method Validationsummary: Displays all controls and properties that all unreasonable error message verification controls can be verified
HtmlInputText ValueHtmlTextArea ValueHtmlSelect ValueHtmlInputFile ValueTextBox TextListBox SelectedItemDropDownList SelectedItemRadioButtonList SelectedItem when the entire page validation controls that need to be validated controls are verified, property values in the Page IsValid will be set to true. Otherwise, for False, there is no control through the verification, the settings of the set error information IF (page.isvalid) {// passed} Else {// unpassed} Each verification control has the same attribute value: ControlTovAlidate: set The Server Control DISPLAY that needs to be verified: Set the display of the verification control is (Behavior) it has three attribute values, which are Dynamic (when the error message is not displayed, the display space will not occupy), static (this value is the default value, Regardless of whether the error message is displayed, NONE (error message only in Validationsummary) ErrorMessage: Defines the text displayed in Validationsummary, and the CompareValidator and the RangValidator control also have a common type property, indicating the data type of the verification data. It has five attribute values: currency, date, double, integer, string
RequiredFieldValidator control RequiredFieldValidator control data used to validate the target control input is not equal to the value set in the attribute InitialValue failed message < / ask: RequiredFieldValidator> InitialValue Default Empty (empty), so if you do not set the value of InitialValue, Required FieldValidator generally uses the verification target whether there is data Enter the RangeValidator Control CompareValidator control to compare the attribute values of the two controls or a control. With a particular data, the ControlTovAlidate property setting requires the control ID value of the comparison, the control ID value of the control ID value, the control ID value of the comparison, the Operator property sets the comparison ID value, the ControlToCompare property setting and comparison The control ID value, the Operator property sets the type of comparison, the relationship of these three properties is indicative of: Operator The following is the application instance of the COMPAREVALIDATOR control application instance Operator's attribute value: equal (equal)