What is AutoMapper in C#?

AutoMapper is used to map data between two objects. In this blog, we will see how to use AutoMapper in our application. Let’s demonstrate the use of Automapper by an example. Suppose we have a class called Employee with 2 properties in it – Name and City class Employee     {         public string Name … Read more

GET vs POST

In this blog, we will see GET and POST method in details. GET and POST are 2 important HTTP verbs. HTTP (Hyper Text Transfer Protocol) manage the request-response between client and server. HTTP GET Method GET parameters included in URL Used for fetching resource i.e. data or documents In GET request we can send data … Read more

Error – Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.

I was working on a project where I wrote a web method and called this web method from JQuery.While accessing the web method I got this error –“Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.”In debugging, I couldn’t find any issue with the code neither in C# nor in JQuery.Then I … Read more

How to create dynamic HTML tags

How to create HTML tags dynamically? In some cases, there might be a requirement to create HTML tags dynamically. For eg, I will create below HTML structure with C# code. <ul id=”pagelist” runat=”server” class=”pages”> <li class=”active” rel=”page1″>My Page Title1</li> <li rel=”page2″>My Page Title2</li> </ul> <div class=”container” id=”container” runat=”server”> <h3 rel=”page1″></h3> <div id=”page1″>    </div> <h3 … Read more

Design Patterns in ASP.Net

If you are an ASP.Net developer or any other programming technologies, then you must have came across the word Design Patter.In this blog, we will see What are design patterns and their types What are Design Patterns? Design patterns provide efficient and re-usable solutions in software development.There are several design patterns available, each patterns have … Read more