Tuesday, February 2, 2010

ASP.NET server controls vs. HTML controls

Server events

Server control events are handled in the server whereas HTML control events are handled in the page.

State management 

Server controls can maintain data across requests using view state whereas HTML controls have no such mechanism to store data between requests.

Browser detection

Server controls can detect browser automatically and adapt display of control accordingly whereas HTML controls can't detect browser automatically.

Properties

Server controls contain properties whereas HTML controls have attributes only

0 Comments: