Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6040449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:30:56+00:00 2026-05-23T06:30:56+00:00

Currently I’m working on Web project that is built using ASP.NET Web Forms. We

  • 0

Currently I’m working on Web project that is built using ASP.NET Web Forms. We want to start building new pages using MVC framework.

Looks like running MVC and Web Forms side by side is doable
Running ASP.NET Webforms and ASP.NET MVC side by side

I’m curious if there are any problems or gotchas that I need to plan for.

I’m running on ASP.NET 4.0 and planning to use MVC3.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:30:57+00:00Added an answer on May 23, 2026 at 6:30 am

    I have been running Webforms and MVC together for an internal application here. It started off as a webforms application and I have migrated it into MVC2 (then 3) with several pieces still successfully working with Webforms still.

    As Darin said, the main gotcha is going to be with templating. If you use the Webforms View Engine you have to create 2 layers of master pages. Webforms code (such as the script manager) do not run on MVC pages, and MVC code doesn’t work under Webforms pages.

    My master pages are setup with a global master page that doesn’t contain any MVC or Webforms code. It only has CSS, global javascript, and main layout. I then have a MVC master page and a webforms master page, both have directives to use the global master page as their master pages. Then each webforms page uses the Webforms sub-master page and the MVC uses the MVC sub-master page.

    If you need to put some code in the global master page, you can detect if the sub-page is a Webforms or MVC page by testing if Page is System.Web.Mvc.ViewPage. If that’s true then it’s an MVC page, otherwise it is a Webforms page.

    However, if you decide to go with the Razor view engine (which I do recommend for MVC, it’s so much better) it becomes harder. You have to do some additional work arounds past what I previously mentioned. This blog post should help in that regards.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently IIS sends an expires http header of yesterday minus 1 hour on ASP.NET
Currently, I am developing a product that does fairly intensive calculations using MS SQL
I want use html5's new tag to play a wav file (currently only supported
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.
Currently we have a project with a standard subversion repository layout of: ./trunk ./branches
Currently, if I want to output a SQL script for a table in my
Currently I have a service that uses a UserNamePasswordValidator to authenticate the client user.
Currently my AJAX is working like this: index.php <a href='one.php' class='ajax'>One</a> <div id=workspace>workspace</div> one.php
Currently it just displays the name of the application and I want it to
Currently my web.config has this: <appSettings> <add key=UserName /> <add key=DBServer /> <add key=DBUserName

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.