Several of the ASP.NET Web API tutorials (see for example "Your First ASP.NET Web API" ) show how you can use ASP.NET Web API with MVC applications. However, you can equally well add a Web API to a Web Forms enabling the same Web API support as in MVC applications. To show how you do this, let's build a Web Site from scratch and then add a Web API to it. We use the Visual Web Developer 2010 Express version of Visual Studio with ASP.NET Web API Beta installed. First we create a new ASP.NET Empty Web Site and give it a reasonable name: Then we add an ASP.NET Folder to hold our Web API implementation. We do this by adding a an App_Code folder as follows: Next we add a Web API Controller Class within the App_Code folder using Add New Item . Note...(read more) ...
Go to the complete details ...