- 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