View Single Post
Old 08-04-2004, 07:10 PM   #8 (permalink)
rdove
Masked Moderator
 
rdove's Avatar
 
Join Date: May 2002
Location: Indianapolis, IN
Posts: 260
rdove is on a distinguished road
Quote:
Originally posted by ashish
Hello all,

Here are a few more things about ASP.NET


HTML server controls - Normally, all HTMl elements in ASP.NET files are treated as text. HTML server controls are basically HTML tags that are processed by the web server and not the browser i.e. these are HTML tags understood by the web server.

To make a HTML server control we use the runat = "server" attribute in the <form> tag, HTML server controls can only be placed within a <form> tag. We can use the 'id' attribute in order to give the HTML server control a custom defined name.

Some very common HTML server controls are HtmlImage, HtmlButton, HtmlAnchor etc. etc.
The HTML Server controls are good, but one thing you gotta remeber about them is that you should not use them unless you are going to do a specific purpose for processing on the server. They WILL slow your page load if you use them for everything. ViewState is another thing you want to turn off if it is not needed on a page. Unless the control is doing something that is needs to interact with the server other than the Request object, you should not use it or turn it off.
__________________
~Ryan

rdove is offline   Reply With Quote