Click here to Skip to main content
12,397,059 members (65,932 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads

Stats

133.2K views
2.6K downloads
102 bookmarked
Posted

ASP.NET WebForms and ASP.NET MVC in Harmony

, 19 Aug 2009 CPOL
Integrating ASP.NET MVC in existing ASP.NET WebForms applications.
Src
App_Code
Controllers
App_Data
ClassicWebForms
Global.asax
Reference_Assemblies
System.Web.Extensions.dll
System.Web.Mvc.dll
System.Web.Routing.dll
Views
Home
using System.Web;
using System.Web.Mvc;
using System.Web.UI;

public partial class _Default : Page
{
    public void Page_Load(object sender, System.EventArgs e)
    {
        HttpContext.Current.RewritePath(Request.ApplicationPath);
        IHttpHandler httpHandler = new MvcHttpHandler();
        httpHandler.ProcessRequest(HttpContext.Current);
    }
}

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)

Share

About the Author

Rajesh Pillai
Architect
India India
Co Founder at TekAcademy Labs.

http://tekacademy.com/

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160721.1 | Last Updated 19 Aug 2009
Article Copyright 2009 by Rajesh Pillai
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid