asp+| Server | tutorials | control | Chinese last talk about ASP + server-side control content, now to tell you in detail. ASP + server-side control is the new concept proposed by Microsoft, its implementation is based on Microsoft. NET Framework, it is actually a special kind of HTML element, the server side and it is interactive relationship, after generating these elements not only can accept their values, but also can dynamically control them, to complete some very cool features. All of the 28 server-side controls and their specific uses that are currently supported by all ASP + are listed below.
1, Adrotator: Advertising rotation server-side control, its specific behavior is defined in the specified XML file, as follows:
The meaning of the attribute:
<imageurl>: The absolute or relative path of the picture to be displayed.
<NAVIGATEURL>: Click on the URL that the image points to, and if it is blank, the picture cannot be clicked.
<alternatetext>: The mouse moves to the hint message displayed on the picture.
<keyword>: Specifies the filter keyword for the ad page.
<impressions>: The display percentage of the advertisement, the higher the number, the more times it appears.
2, Button: This good understanding, similar to the traditional form of button, but the use of a slightly different, the specific use of my ominous.
3, Calendar: A very convenient calendaring control, so that you do not have to use JavaScript to make up, but also to calculate a leap year or something, to worry about how annoying, look at the following example:
This control comes with a property selectionmode, and its specific attribute values are as follows:
Day: You can choose any single date.
DayWeek: You can choose one day or one weeks.
DayWeekMonth: You can choose one day or one weeks or one months.
None: Cannot select date.
4, CheckBox: check box, there is nothing to say, but there is a difference, that is, if its AutoPostBack property is set to True, click it can be submitted to the server side.
5, CheckBoxList: As the name suggests, a group of optional check box list, it has two important attributes, RepeatLayout and RepeatDirection, control the layout of the list, set to table then the list to the bottom, if set into flow, There is no table, repeatdirection default is vertical, vertical arrangement, if set to horizontally, then arrange horizontally.
6, CompareValidator: Two server-side control of the comparison. It has three important attributes that cannot be missing: ControlToValidate, ControlToCompare decides to compare those controls, operator determines the way of comparison, is equal to, not equal to, greater than, less than. The concrete implementation looks at the following example:
7, CustomValidator: Custom comparison, the role is to be able to do the basic comparison can not complete the comparison operation. This comparison can be run on the server side, or it can run on the client, such as with VBScript or JavaScript. The usage is very simple, see example.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.