What are the different types of caching?

ASP.NET has 3 kinds of caching : Output Caching, Fragment Caching, Data Caching. In ASP.NET, caching plays a crucial role in improving application performance and scalability. There are several types of caching available: Output Caching: This type of caching stores the generated output of a web page or user control so that the server can … Read more

What is caching?

Caching is a technique used to increase performance by keeping frequently accessed data or files in memory. The request for a cached file/data will be accessed from cache instead of actual location of that file. In the context of ASP.NET, caching refers to the process of storing frequently accessed data in memory temporarily. This allows … Read more

How you can add an event handler?

Using the Attributes property of server side control. e.g. btnSubmit.Attributes.Add(“onMouseOver”,”JavascriptCode();”) In ASP.NET, you can add an event handler in several ways, depending on the context and the control you’re working with. Here are a few common methods: Using the ASP.NET Markup (Web Forms): In ASP.NET Web Forms, you can define event handlers directly in the … Read more

What are the different Session state management options available in ASP.NET?

In-Process Out-of-Process. In ASP.NET, there are several options available for session state management. These options include: InProc: Session state is stored locally in the memory of the web server process. This is the default option and is generally suitable for small-scale applications. However, it’s not suitable for web farms or applications requiring high scalability because … Read more

How long the items in ViewState exists?

They exist for the life of the current page. In ASP.NET, the items stored in ViewState persist for the duration of a single page request-response cycle. Once the page is rendered and sent to the client, the ViewState data is serialized and sent as a hidden field within the page. Upon receiving a postback from … Read more