Click here to Skip to main content
12,507,358 members (71,794 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads

Stats

136.3K views
2.7K 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
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Home.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2>This is the classic asp.net web form.</h2>
    </div>
    
    <asp:HyperLink ID="lnkRedirect" runat="server" NavigateUrl="~/Home/Index">Go to ASP.NET MVC Page</asp:HyperLink>
    
    </form>
</body>
</html>

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...

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