What is the difference between session and application object?

The difference between session and application object is that all users share one Application object and with sessions, there is one session object for each user. Data stored in the application object can be shared by all the sessions of the application. Application object stores data in the key-value pair. Session object stores session-specific information … Read more

What is a web service?

A Web service, in the context of .NET, is a component that resides on a Web server and provides information and services to other network applications using standard Web protocols such as HTTP and Simple Object Access Protocol (SOAP). In the context of ASP.NET interview questions, the correct answer to “What is a web service?” … Read more

Give some examples of web controls

Button Calendar Checkboxlist DropDownList RadioButtonList In an ASP.NET interview, when asked about web controls, you can provide examples of various types of web controls that ASP.NET offers. Web controls are essential elements in ASP.NET for building web applications. They encapsulate common HTML elements and provide a higher level of abstraction, making it easier for developers … Read more

What are web controls in ASP.NET?

Web controls are classes in the .NET framework. The controls have special tags understood by the server. They are created on the server and require a run at=”server” attribute to execute. They generate HTML code that is sent back to the browser. In ASP.NET, web controls are elements that are used to create the user … Read more

What is fragment caching?

Fragment caching refers to the caching of individual user controls within a Web Form. Each user control can have independent cache durations and implementations of how the caching behavior is to be applied. Fragment caching is useful when you need to cache only a subset of a page. In ASP.NET, fragment caching is a technique … Read more