Category Archives: Asp.Net

Connected and Disconnected architecture in ADO.Net

The ADO.NET Framework supports two models of Data Access Architecture, Connection Oriented Data Access Architecture and Disconnected Data Access Architecture. Connected Architecture of ADO.NET In connected architecture, the connection must be opened to access the data retrieved from the database. It was built on the classes connection, command, datareader and transaction. Disconnected Architecture in ADO.NET… Read More »

AutoMapper in C#

AutoMapper is an object-object mapper which allows you to solve the problem of manually mapping each property of a class with the same properties of another class. AutoMapper saves you the tedious effort of having to manually map one or more properties of such incompatible types. Before AutoMapper was introduced if we wanted to assign… Read More »

Accordion in AngularJS

Accordions are useful when you want to toggle between hiding and showing large amount of content as below image: Follow the below steps to show accordion in page using angularjs as above image. Step 1:  First create a module which define the angular application and add controller with some dummy data to show in accordion… Read More »

Constructor in C#

Constructor is special method of a class that name is same as class name. Main use of constructors is to initialize private fields of the class while creating an instance for the class. Constructor is automatically invoked or called when an instance of that class is created. When you have not created a constructor in the class, the… Read More »

Delegates in c#

C# delegates are similar to pointers to functions, in C or C++ which are used for implementing events and the call-back methods. It’s a reference type variable which holds the reference to a method and their can be changed at runtime.It uses namespace System.Delegate . It can be declared with “delegate” keyword for example public… Read More »

How to Integrate Paytm in Aps.Net

Here we will learn, how to integrate Paytm payment gateway in Asp.net website. First we need to signup in Paytm through this link   and  then upload the required document and compliance through this link. Now come to the installation and configuration steps as below. Installation and Configuration Steps for .net These installation steps are for… Read More »

Enumeration in C#

An enumeration is a set of named integer constants and declared by enum keyword. They are value data type in other words it has their own value or can not inherit. Enumeration list is seperated by comma and by default first enumeration list is 0(or starts with zero). syntax: enum <enum_name> { enumeration_list }; Example:… Read More »

Yield Keyword in C#

yield keyword is used for customized iteration in a collection. It is used inside an iterator block which return iterator type. It can not be used directly inside Main method which is void type. Uses of yield keyword : No need to create temporary list. As it returns value back to caller for every match… Read More »