Category Archives: Asp.Net

Asp.Net

Http Handler vs Http Module in Asp.Net

Http Handler An http handler returns a response to a request that is identified by a file name extension. i.e; .aspx (page handler) . It uses IHttpHandler Interface. It is used for rss feeds, image server etc. Http Modules An http module is invoked for all types of requests and responses. It uses IHttpModule Interface. it Continue Reading…

State Management in Asp.net.

State Management – State Management techniques are used to persist data between post-backs. State Management techniques can be divided in two categories : Client State Management View state Control state Hidden fields Cookies Query strings Server State Management Application state Session state Profile properties Database support View state Use when you need to store small amounts Continue Reading…

When to use interface and abstract class in C#.

Abstract classes have some implemented functionality so you can use the same functionality among all your implementations. Its the best example of re-usability of code. While Interfaces don’t provide any implementation of code. If you are thinking about multiple version of your component then create abstract class. Abstract classes provide a simple and easy way Continue Reading…

What is difference between overloading and overriding in C#?

Difference between overloading and overriding. Overloading : It means methods are declared with same name but different parameters (signatures). It is also called compile time and early binding. Example :- Overriding : It means methods are declared with same name and same parameters (signatures). it is also called run time and late binding. Method overriding is only possible Continue Reading…

What is Data Concurrency and Types of Concurrency Control in ADO.NET.

When multiple users attempt to modify data at the same time, controls need to be established in order to prevent one user’s modifications from adversely affecting modifications from simultaneous users. The system of handling what happens in this situation is called concurrency control. Types of Concurrency Control Three common ways to manage concurrency in a Continue Reading…

What are the validation controls available in ASP.NET?

ASP.NET validation controls are: RequiredFieldValidator: This validates controls if controls contain data. CompareValidator: This allows checking if data of one control match with other control. RangeValidator: This verifies if entered data is between two values. RegularExpressionValidator: This checks if entered data matches a specific format. CustomValidator: Validate the data entered using a client-side script or Continue Reading…

Explain how a web application works.

A web application resides in the server and serves the clients requests over internet. The client access the web page using browser from his machine. When a client makes a request, it receives the result in the form of HTML which are interpreted and displayed by the browser. A web application on the server side Continue Reading…