Common properties for all Server Controls
Most of the server controls share some common behavior.
Part of this behavior includes the so-called properties that define the data a control can contain and expose.
ID-> uniquely identify it in the page
Runat-> attribute that set to Server to indicate the control should be processed on the server
ClientID-> contains the client-side ID attribute that will be assigned to the element in the final HTML.
Note:
In versions of ASP.NET up to 3.5 this ClientID was always generated for you automatically. However, in ASP.NET 4 a new ClientIDMode property has been introduced that gives you more control over the ID of an element at the client.
0 comments:
Post a Comment