ASP. NET server controls vs. HTML controls

This blog defines the difference between asp. net server controls and HTML controls. These are the some important point which defines difference between server controls and HTML controls.

  1. Server events

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

  2. State management

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


  3. Browser detection

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


  4. Properties

Server controls contain properties whereas HTML controls have attributes only.

  5.  Abstraction

ASP .NET Server Controls have higher level of abstraction. An output of an ASP .NET server control can be the result of many HTML tags that combine together to produce that control and its events. Example Gridview or Form control.