Home Login Registration Authors Contact Us About Us Subscribe
Want to receive new articles via e-mail? Click here!
: Home  :: Web Programming  :: ASP .Net
Understanding ASP.NET HTML Server Controls
by Webdevinfo - Webmaster
Views: 418
Votes: none
Rating: 0.00
Synopsis:
ASP.NET HTML Server Controls are the HTML controls that run at the server-side i.e. they have runat=”server?attribute. You can also have normal HTML controls in your ASP.
Rate this article  Print this article  Email this article  View this article in PDF  Discuss this article
Page:  1
The Article

ASP.NET HTML Server Controls are the HTML controls that run at the server-side i.e. they have runat=”server?attribute. You can also have normal HTML controls in your ASP.NET page, but these controls will run only at the client-side. Therefore, using ASP.NET HTML Server Controls you can make full use of the .Net Framework utilities such as ViewState management and validation. ASP.NET HTML Server Controls must have the form tags enclosing them with runat=”server?attribute.

The ASP.NET HTML Server Controls that you can apply in ASP.NET page are as follows:

?HTMLAnchor: Creates a server-side control that links to the a HTML element. The a element is used to create a link to another page. You can place an HTMLAnchor control within the HTMLForm control.

?HTMLButton: Creates a server-side control button that maps to the button HTML element. This ASP.NET HTML Server Control has various methods to modify the appearance of an HtmlButton control. You can assign style attributes to the button, include formatting elements or assign property value. You can also include images within the button elements themselves, or even include other Web Forms controls.

?HTMLImage: Creates a server-side control that allows you to view an image. In addition, you can set and retrieve the image's source, width, height, border width, alternate text, and alignment by using the Src, Width, Height, Border, Alt, and Align properties of this ASP.NET HTML Server Control. The HTMLImage control does not require a closing tag.

?HTMLForm: Creates a server-side control that allows you to place multiple controls in it. The HTMLForm control must have an opening and closing tags. If both the tags are not available, either the elements in it will not be viewed or run in the browser window or the compilation error message will occur.

?HTMLGeneric: Creates a server-side control for the HTML elements such as body, div, span, and font. This control links the tags of the particular element to be used as an HTML control to ASP.NET through the TagName property. This ASP.NET HTML Server Control has functionality of the HtmlContainerControl class, which allows you to dynamically change inner content of HTML control tags.

--------------------------------Resource Box------------------------------
Visit http://www.dotnet-guide.com for a complete introduction to .NET framework. Learn about ASP.NET, VB.NET, C# and other related technologies.
--------------------------------------------------------------------------

Page:  1
Rate this article  Print this article  Email this article  View this article in PDF  Discuss this article
Similar/related articles:
Advanced Search
Site Search:


FirstWebHosting
Top Ten Hosts as picked by our editors - with reviews and interviews.
The Host Planet
Web hosting reviews and ratings. Learn how to spot a great host.
Hosts2002
The first and greatest hosting directory with the consumer in mind.
Hostcue.com
Hosting directory for the masses with special offers Check us out!
WebDevForums
Web developers or all levels discuss the details of design and ecommerce.
Needscripts.com
Free scripts and applications for web developers.