Click here to Skip to main content
15,867,686 members
Articles / Web Development / ASP.NET

ASP.NET WebForms and ASP.NET MVC in Harmony

Rate me:
Please Sign up or sign in to vote.
4.85/5 (37 votes)
19 Aug 2009CPOL11 min read 218.1K   3.2K   106  
Integrating ASP.NET MVC in existing ASP.NET WebForms applications.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

/// <summary>
/// Summary description for HomeController
/// </summary>
public class HomeController : Controller
{
    public ActionResult Index()
    {
        ViewData["Message"] = "Hello from Home controller";
        return View();
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Algorisys Technologies Pvt. Ltd.
India India
Co Founder at Algorisys Technologies Pvt. Ltd.

http://algorisys.com/
https://teachyourselfcoding.com/ (free early access)
https://www.youtube.com/user/tekacademylabs/

Comments and Discussions