Where the viewstate is stored after the page postback?

ViewState is stored in a hidden field on the page at client side. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source. In ASP.NET, after a page postback, the ViewState is stored in the __VIEWSTATE hidden field. This hidden field is … Read more

What is ViewState?

ViewState is used to retain the state of server-side objects between page post backs. In ASP.NET, ViewState is a client-side state management technique used to preserve the state of server-side controls (such as textboxes, dropdown lists, etc.) across postbacks. When a web page is posted back to the server, ViewState stores the values of those … Read more

Which validator control you use if you need to make sure the values in two different controls matched?

Compare Validator control. In ASP.NET, if you need to ensure that the values in two different controls match, you can use the CompareValidator control. The CompareValidator control compares the value entered into an input control with the value entered into another control or a constant value. You can specify the type of comparison operation (such … Read more

What are the different validators in ASP.NET?

Required field Validator Range Validator Compare Validator Custom Validator Regular expression Validator Summary Validator In ASP.NET, validators are used to perform validation checks on user input in web forms to ensure that the data entered by the user is valid before it is processed. There are several types of validators available in ASP.NET: RequiredFieldValidator: Ensures … Read more

From which base class all Web Forms are inherited?

Page class. In ASP.NET, all web forms are inherited from the System.Web.UI.Page class. This class provides the fundamental framework for handling web requests and rendering HTML output. It contains methods and properties that are essential for managing the lifecycle of a web page, handling events, and interacting with the server-side code.