Control objects: HTML or ASP.NET

  • Thread starter Thread starter Apostolis K.
  • Start date Start date
A

Apostolis K.

When should I use HTML Control objects (HTML Tags + "runat" and "id"
attirbutes) and when ASP.NET Control Objects (<asp:servercontrol> tags) in
my ASP.Net Application. Is anyone of them more effective in some tasks or
whichever I use is the same thing?
 
HTML Controls are class for use same part of html element on server, these
replace the old response.write().

ASP.NET controls have more code inside. ASP.NET controls are rendered
totally on server, can use ViewState for remember settings, and have
serverside event!

Brun.
 
Can't the HTML controls retain VIEWSTATE if they have runat=server ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top