Hi all,
Just wanted to tell something to all the newbies about the various HTML server controls.
Normally, all HTML elements in a ASP.NET file are treated as normal text, however, in order to process a HTML element at the server, you need to add a runat = "server" property in the form and the Html tags.
Once you do that you can programmatically control a Html element, in fact all the HTML controls allow you to control some or the other Html tag at the server.
Here is a list of the various HTML server controls along with the Html tag that they control.
HtmlAnchor - Used for controlling the
<a> tag, which is associated with hyper linking.
HtmlButton - Controls the <button> tag.
HtmlForm - Controls forms.
HtmlGeneric - All those Html controls for which there is no specific Html server control are handled by this control,
for ex: <body>, <div>, <span>, etc.
HtmlImage - Controls the image tags.
HtmlInputButton - Controls the submit, reset & button HTML elements.
HtmlInputCheckBox - Controls the checkbox element.
HtmlInputFile - Controls the file element.
HtmlInputHidden - Controls the hidden element.
Any suggestion/Corrections/Additions welcome :)
Some info from
www.411asp.net &
www.aspalliance.com