How do i get ASP.Net Web API to return JSON

In my earlier blog, we have seen How to create a Web API? In this blog, we will see about how to return JSON data instead of XML in Web API.ASP.Net Web API returns XML by default. But we can change so that it should return JSON instead of XML. To do this open “WebApiConfig.cs” file … Read more

How to create ASP.Net Web API

In this blog, I have created ASP.Net web api using Visual Studio 2015.If you need to know what is web api then please read one of my previous blog. Follow the below steps to create ASP.Net Web API Open Visual Studio 2015 and follow the below steps:1. File -> New Project and Select ASP.Net Web … Read more

MVC Architecture

In this blog, we will try to understand the MVC Architecture with the help of a diagram. MVC Architecture MVC consists of 3 main words: Model View Controller Apart from above mentioned elements one another important element is there in MVC, called Routing. To know more about Routing in MVC Click here. MVC architecture works … Read more

MVC Version

MVC was first introduced in .Net 3.5 framework.MVC 1.0 was available in year 2009 with following features:Routing, HTML Helpers, Auto Binding. Since then multiple versions were introduced with various .Net framework. Versions of MVC After MVC 1.0, 2.0, 3.0, 4.0, MVC 5.0 (MVC 5.2.2 and MVC 5.2.3) Now Microsoft has introduced core versions of MVC … Read more

What is Web API? When should we use in our projects?

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 of Web API is that it can be consumed by a wide range of clients like a web browser and mobile applications. ASP.Net Web API … Read more

Angular JS model and controller

Angular JS Model: ng-model directive in Angular JS is use to bind the value of an HTML control to any variable. <div ng-app=”testApp” ng-controller=”testCtrl”>    Name: <input ng-model=”name”>    <h1>Hello : {{name}}</h1></div>

Razor View and ASPx in MVC

In MVC 5 we have only one way to create View which is Razor View, the file extension of razor view is “.cshtml” But before MVC 5 we had one more option which was ASPX, now in MVC 5 ASPX has been removed and currently, Razor view is available with MVC 5. Razor View vs … Read more

My first ASP.Net MVC Program

In all my blog I will be giving example/code in context of Visual Studio 2015.So first create a MVC project in VS 2015. My first ASP.Net MVC Program File-> New -> ProjectSelect Web from templates (from left side) and ASP.Net Web Application from middle section, click on OK. Now select MVC from template section and … Read more

Introduction to ASP.Net MVC

In this blog, we will know about ASP.NET MVC.This is my first blog on MVC.  We will see below topics in this blog – 1. What is ASP.NET MVC?2. A relation between ASP.NET and ASP.NET MVC.3. Why MVC?4.The lifecycle of MVC application 1. What is ASP.NET MVC? MVC – A commonly used software design pattern. MVC … Read more

RSS
YouTube
YouTube
Instagram