How to Enable HTTPS for ASP.Net Web API?

In this blog, we will see how to enable a Web API service to the server over HTTPS only and not on HTTP.If you are new to Web API, then read my earlier blogs on ASP.Net Web API here.As you know ASP.Net Web API runs over HTTP protocol. Suppose you want to serve your Web … Read more

Basic Authentication in Web API

In this blog, we will see the implementation of basic authentication in Web API. Security is very important aspects while working on the distributed application. While exposing an API we must take care about security. Basic Authentication is a simple authentication mechanism where the client sends requests with an Authorization header with word Basic. In … Read more

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

Consume Web API 2 in C# Console Application

Web API can be consumed either using JQuery, Angular JS, MVC or Console Application. In this blog, we will consume Web API 2 using HttpClient in a Console Application. I have already created a Web API2 demo project earlier, you may visit below link to see how can we create a Web API 2 project. Web … Read more

Web API2 CRUD operations using Entity Framework and MVC

In this blog, we will perform Web API CRUD operations using Entity Framework and ASP.Net MVC. What is ASP.Net Web API? Web API is the Microsoft open source technology for developing REST services based on HTTP protocol. ASP.Net Web API is a framework for building, consuming HTTP based services. The advantage of Web API is … Read more

Consume Web API 2 using JQuery in MVC application

In this blog, we will see how to create a Web API in Visual Studio 2017 and consume this API from MVC application using jQuery. Web API is the Microsoft open source technology for developing REST services based on HTTP protocol. ASP.Net Web API is a framework for building, consuming HTTP based service. The advantage … Read more

Angular Tutorial – Setting up the local development environment

In this blog, we will see how can we setup development environment in Visual Studio 2017 to run angular 2 application. Angular Installation To setup the Angular 2 environment we need node js, npm and type script. Let’s install these components one by one. First, open this URL – https://nodejs.org/en/ Once Node 8.12.0 installer downloaded … Read more

How to integrate Google recaptcha with ASP.Net MVC Application?

In this blog, Let’s see how can we integrate Google reCapctah with ASP.Net MVC. What is Google ReCaptcha? Google reCaptcha help public websites to prevent spam access on an input form like login, signup.It is basically a way to identify that no robot is submitting the input form. Follow below steps to integrate a Google … Read more

ASP.Net MVC Ajax.BeginForm with an example – MVC Blogs

Hi, recently I was working on a project in MVC. I had to post a form using Ajax to avoid page postback.I have demonstrated this by an example. Let’s see the code to implement Ajax.BeginForm in an MVC application. Ajax.BeginForm in MVC Nowadays users don’t want to see a page refresh and web technologies are … Read more

RSS
YouTube
YouTube
Instagram