C # development and learning-web server-side controls,

Source: Internet
Author: User

C # development and learning-web server-side controls,
The controls used by Asp.net in client development and web development are quite different, and the Web development interface is displayed in the browser, therefore, the control design is related to the front-end learning HTML design. It is not as simple as client development, but we can use specialized tools to help us develop. This blog briefly summarizes the functions of each control!

 

Function Widget Description Attribute Method Event
Text Label Show text Text    
  TextBox Accept user input, text/numbers/dates, etc. Text/TextMode/AutoPostBack/Visible/Enable TextChanged  
  Literal Show text without adding any HTML elements      
Button Button Command button Text/PostBackUrl Focus Click/Command
  ImageButton Buttons containing images PostBackUrl/AlternateText/ImageUrl    
Hyperlink HyperLink Hyperlink Control Text/NavigateUrl/Target: _ top, _ blank, _ parent, _ self,    
  LinkButton Command button with hyperlink wow appearance     Click
Select RadioButton Radio button Checked/GroupName/Text   CheckedChanged
  RadioButtonList Single-choice 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, multiple options available     SelectIndexChanged
  DropDownList Drop-down list      
Image Image Show images ImageUrl/ImageAlign    
Container Panel Used as a container for other controls, corresponding to the <div> tag of html GroupingText/ScrollBars    
  PalceHoder Placeholder container, which can dynamically add content during runtime      
File Upload FileUpdate File Upload Control   SaveAs  
Navigation TreeView Tree navigation      
  Menu Drop-down menu navigation      
  SiteMapPath Show navigation path      
Data Binding Control GirdView Data Table Control DataSource DataBind (bind the data source to the GirdView Control)/Sort/UpdateRow PageIndexChanged/Sorted
  DataList You can use custom data binding controls. DataSource DataBind/CreateItem  
  ListView Use a custom template to display data from the data source. You can select, sort, delete, edit, and insert records.      
  Repeater You can specify a duplicate template for each item displayed in the data binding list.      
  DetailsView A single record from the data source is displayed in the table. Each Data row indicates a field of the record.      
  FormView Use a user-defined template to display a single record in the data source. You can select, sort, delete, edit, and insert records.      
Data Source Control SqlDataSource Data Source bound to the sqlserver Database      
  ObjectDataSource Provides business objects for data binding controls in the multi-layer web application architecture      
Data Verification RequiredFieldValidator Verify whether a field is entered ControlToValidate (Control ID to be verified)/ErrorMessage (enter invalid error message)/Text/IsValid    
  CompareValidator The content of a field is compared with the specified object. ControlToValidate/ControlToCompare/operator (comparison operation type): Equal.../ValueToCompare (Control ID used for comparison)    
  RangeValidator Whether the field content is in the specified range ControlToValidate/Maximum Value/Minimum Value/Type/Text    
  ValidationSummary Show all verification error messages DisplayMode    
  RegularExpressionValidator Whether the field content meets the specified format ControlToValidate/ValidationExpression (Regular Expression used for verification)    
  CustomValidator

Custom verification control

ControlToValidate/ClientValidationFunction

   



 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Other important controls, refer to blog: http://blog.csdn.net/liujiahan629629/article/details/8947111

 

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.