Why to Use ASP.NET Server Controls in Place of HTML Controls? Last Updated : 23 Dec, 2021 Comments Improve Suggest changes Like Article Like Report 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. ASP.NET: ASP.NET is a server side framework for web development which provides the services required to develop enterprise class web applications with minimal code. It ships within the .NET framework so it has access to all build in classes present within the .NET framework while writing ASP.NET code. It has better user authentication. It uses compiled code which in turn increases the performance of the applications. ASP.NET pages run as code on the server. The page is configured in such a way that when ever a user clicks buttons it gets submitted to the server. When the page is refreshed and submitted back to itself then it runs ts server code again and renders a new version of itself back to the users. Normally Web Forms page gets compiled on the server as page objects and they are cached in server memory. An ASP.NET page is a combination of all the server side controls in a page and code of event handling it which is written in the code file behind it, hence the page is executed as a single unit. When the user requests the page for the first time the page is dynamically compiled and it gets executed. Hence it is not required to precompile the pages into assemblies. ASP.NET server controls are controlled by abstract, strongly typed object models. They can be dragged and dropped on the .aspx page from the toolbox. And also we can include special controls to it such as calendar controls and validation controls.NameSpace: We use the following namespace for web controls: System.Web.UI.WebControls The server controls are designed for making the develop tools and applications easier. The process of creating the web forms is now more efficient and simple. Frequently used web server controls are TextBox, Label, Button, CheckBox, RadioButton, GridViewValidation Controls: Validating the data is very important while getting the data entries from a user end. Validation should be done at server side also in addition to the client side. Validation controls are generally placed adjacent to the controls that they are validating. Validation controls validate data at the client side before postback process. Validation Controls are placed on the web form and then they are setting its ControlToValidate property to the controls you want to validate. Validation Summary control is used to display the validation related error messages of all the controls at once ie at one place. We need to even provide a control such as button which triggers a postback event. Because although validation happens at client side , the validation process doesn't even start until a postback is requested.State Management: State Management is a mechanism which allows you to maintain state and page information over multiple requests made for the same or for different pages. Web Pages developed in ASP.NET are HTTP based and HTTP protocol is a stateless protocol. To overcome this limitation ASP.NET supports several concepts to preserve data called state management. ASP.NET provides different alternatives for state management they are Client side, Server side. In Client side we use ViewState, Hidden fields, Cookies, Query strings. While in Server side we use Applications, Sessions, Database to store data. Comment More infoAdvertise with us Next Article Why to Use ASP.NET Server Controls in Place of HTML Controls? H haritha4786999 Follow Improve Article Tags : C# TrueGeek TrueGeek-2021 ASP-Basics Similar Reads Different Types of HTML Helpers in ASP.NET MVC ASP.NET provides a wide range of built-in HTML helpers that can be used as per the user's choice as there are multiple overrides available for them. There are three types of built-in HTML helpers offered by ASP.NET. 1. Standard HTML Helper The HTML helpers that are mainly used to render HTML element 5 min read Why we should use ASP.NET? ASP.NET is a web framework designed by Microsoft Inc. that is extensively used to build robust web applications. In this article, we will analyze why ASP.NET should be chosen over other accessible web frameworks. Following are some main advantages of ASP.NET which makes it better than other framewor 2 min read ASP.NET Interview Questions and Answer ASP.NET is a popular framework by Microsoft for building fast and scalable web applications. It allows developers to create dynamic websites, services, and apps, using server-side code and offering a user-friendly experience. Trusted by companies like Microsoft, Dell, and Accenture, ASP.NET is used 15+ min read ASP Introduction and Installation ASP stands for Active Server Page. It is commonly known as Classic ASP or ASP Classic. ASP is a server-side scripting language that is used for executing the scripts on the webserver. This technology was developed by Microsoft. It is an old but still useful tool used to create dynamic webpages. ASP 3 min read Difference Between .NET and ASP.NET Framework .NET Framework is used to develop Form-based applications, Web-based applications, and Web services. It is used to develop both desktops as well as server-based applications. There is a variety of programming languages available on the .Net platform, VB.Net, and C# being the most common ones. It is 2 min read Difference Between ASP.NET and VB.NET ASP stands for Active Service Pages. ASP.NET is an open-source, server-side scripting web application designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic websites, applications, and servers. It works on top of the HTTP protoc 2 min read Difference between ScriptManager and ScriptManagerProxy In ASP.NET, managing client script files can be a complex and time-consuming task. This is where the 'ScriptManager' and 'ScriptManagerProxy' controls come in handy. They are used to manage client script files on web pages and improve the performance and maintainability of web applications. In this 4 min read Difference Between C# and ASP.NET Pre-requisites: C#, ASP.NET C# (also known as C sharp) is an object-oriented programming language that is used to produce an array of applications for gaming, mobile, web, and Windows platforms also It is a modern and type-safe language and provides simple syntax which makes it easier to learn and i 2 min read ASP Full Form ASP stands for active server pages and it is a server-side script engine for building web pages. ASP is basically a server page that contains embedded programs in it. The programs in it are processed on the Microsoft server. The ASP server-side engine basically performs the task of reading and execu 2 min read Difference Between Node.js and Asp.net ASP.NET: It is an open-source web application framework initially discharged by Microsoft in January 2002 with the primary cycle of the .NET system. It is built on the Common Dialect Runtime (CLR), permitting the utilization of any .NET dialect counting C# (object-oriented), F# (utilitarian to begin 4 min read Like