Chapter 2.0 Understanding Asp.Net Controls
Description
Describes asp.net controls fundamentals.
Presentation Transcript
Chapter 2.0 Understanding Controls : Chapter 2.0 Understanding Controls
Slide 2 : ASP.NET - Server Controls
1) Server controls are tags that are understood by the server.
2) There are three kinds of server controls:
2.1) HTML Server Controls - Traditional HTML tags
2.2) Web Server Controls - New ASP.NET tags
ASP.NET - HTML Server Controls
1) HTML server controls are HTML tags understood by the server.
2) HTML elements in ASP.NET files are, by default, treated as text. To make these elements programmable, add a runat="server" attribute to the HTML element. This attribute indicates that the element should be treated as a server control. The id attribute is added to identify the server control. The id reference can be used to manipulate the server control at run time.
Note: All HTML server controls must be within a