Open In App

Why to Use ASP.NET Server Controls in Place of HTML Controls?

Basically HTML controls are client side controls and ASP.NET controls are server side controls.

We prefer ASP.NET controls  as our web controls. As with the HTML controls we can’t maintain the state ie the data is lost, we can say it as it does not provide state management. And while writing the code we can’t access HTML controls from code behind the files. 

So even though the execution is fast at client side we only prefer the ASP.NET because of the above two reasons. HTML controls does not even support object oriented paradigm and it has a limited set of properties and methods where as ASP.NET has full support of object oriented paradigm and it can be directly accessed from code behind the files and it has a rich set of properties and methods.

Article Tags :