Working with ASP. NET Server controls

Source: Internet
Author: User

    1. Introduction to server Controls

When a page is requested in a browser, server controls are processed by the ASP. NET runtime, which converts the controls to HTML code and returns them to the client. The runat attribute of the server control is used to indicate that the control survives on the server, and without this feature, the controls will not be processed by the ASP and will eventually be directly HTML source code. If the control button on the page does not declare the Runat property

    <form id="Form1" runat="server">    <div>        <asp:button id="Button1" text="button" />    </div>    </form>

The HTML that is generated after the page is requested, such that the control is not returned directly to the client by the server processing

    <div>       <asp:button id="Button1" text="button"/ >    </div>

2. server controls converted to HTML code

<asp:Label>            <span><asp:DropDownList>     <select><asp:            <div> panel>

Working with ASP. NET Server controls

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.