C # Development Learning--web server-side controls

Source: Internet
Author: User

the controls used by ASP. NET in client-side development and Web development are still very different, and the Web development interface is displayed in the browser, so the design of the control is both in front of the HTML design is connected and not as simple as client-side development, but we can use specialized tools to help us develop. This blog, the first simple summary of the functions of the various controls!

Function Control Description Property Method Event
Text Label Display text Text
Textbox Accept user input, text/number/date, etc. Text/textmode/autopostback/visible/enable TextChanged
Literal display text without adding any HTML elements
Button Button command button Text/postbackurl Focus Click/command
ImageButton Buttons that contain images Postbackurl/alternatetext/imageurl
Hypertext links HyperLink Hyperlink control Text/navigateurl/target:_top, _blank, _parent, _self,
LinkButton command buttons with a hyperlink Wow appearance Click
Choose RadioButton radio button Checked/groupname/text CheckedChanged
RadioButtonList Radio button group, only one button can be selected in this group Selectindexchanged
CheckBox Check Group Checked/text/autopostback CheckedChanged
CheckBoxList check box Group Selectindexchanged
ListBox List, you can select multiple Selectindexchanged
DropDownList drop-down list
Image Image Display image Imageurl/imagealign
Container Panel Used as a container for other controls, corresponding to the HTML <div> tag Groupingtext/scrollbars
Palcehoder placeholder containers that can add content dynamically at run time
File Upload Fileupdate File Upload Control SaveAs
Navigation Treeview Tree-Type Navigation
Menu Drop-down menu navigation
SiteMapPath Show navigation path
Data-bound controls Girdview Data Table controls DataSource DataBind (binds the data source to the Girdview control)/sort/updaterow pageindexchanged/sorted
DataList Data-bound controls that can be used in a custom format DataSource Databind/createitem
Listview Display data source data using user-defined templates, you can select/Sort/delete/edit/Insert Records
Repeater You can repeat the specified template for each item displayed in the data-bound list
DetailsView Displays a single record from the data source in the table, where each row of data represents a field of the record
FormView Display a single record in a data source using a user-defined template, you can select/Sort/delete/edit/Insert Records
Data source Control SqlDataSource Data sources that are bound to SQL Server databases
ObjectDataSource A business object that provides data for data-bound controls in a multi-tiered Web application architecture
Data validation RequiredFieldValidator Verify that a field is entered ControlToValidate (the control ID to be validated)/errormessage (Enter an illegal error message)/text/isvalid
CompareValidator The contents of a field are compared to the specified object Controltovalidate/controltocompare/operator (type of action to compare): Equal.../valuetocompare (the control ID for comparison)
RangeValidator Whether the field contents are within the specified range Controltovalidate/maximum Value/minimum Value/type/text
ValidationSummary Show all validation error messages DisplayMode
RegularExpressionValidator Whether the field content conforms to the specified format Controltovalidate/validationexpression (regular expression for validation)
CustomValidator

Custom validation Controls

Controltovalidate/clientvalidationfunction



For a description of some of the more important controls, refer to the blog:http://blog.csdn.net/liujiahan629629/article/details/8947111

C # Development Learning--web server-side controls

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.