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 8502769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:34:40+00:00 2026-06-11T01:34:40+00:00

I’m in a situation where I’m new to MVC and the other programmer on

  • 0

I’m in a situation where I’m new to MVC and the other programmer on my team is not so sometimes my learning curve is slowing deliverables down a little, so I’m trying to figure out what my options are for mixing in MVC views (or partial views) with WebForms as a short term solution to make functionality available in beta release and give me a chance to re-write in MVC for production.

I read this article and it explains how to reference assemblies of both frameworks but it doesn’t seem to explain how to mix them in a single page.

For instance, can I take a user control (.ascx) and a view (.cshtml) and easily render them both into a master page (.master.aspx)?

It’s as if I’d like a server control that executed the view on the server side and writes the contents to the Response stream. I guess the other option is to javascript ajax the view into the asp.net page but I’m wondering if that can be avoided.

  • 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-06-11T01:34:42+00:00Added an answer on June 11, 2026 at 1:34 am

    Yes and no.

    You can mix ASP.NET MVC and WebForms, but it isn’t recommended, and there are also restrictions on what you can mix. Throughout my post I’m referring to ASPX views, not Razor / CSHTML views. Using alternative ViewEngines with WebForms is almost impossible.

    An MVC View (ASPX, not CSHTML) by itself can be used by WebForms provided that you initialise it correctly and provide a Model object if required (a View is then just like a regular aspx page except without a CodeBehind class).

    You can also load ASCX controls and System.Web.UI.Control subclasses into an ASP.NET MVC view with a few minor hacks (it isn’t perfect – control lifetime events won’t be fired, for example, but it’s more about getting them to render into your view).

    You can also have ASPX pages in the same environment as an MVC web application (so long as you get Routing working). A CodeBehind-style ASPX can redirect users to an MVC Controller action and vice-versa.

    However you cannot invoke MVC Controller actions from within a WebForms page CodeBehind without a lot of uphill work, but I can’t really see any reason why you’d want to.

    I think you should reword your original question and think about what you ultimately want to accomplish. Personally if this was a maintenance task I’d stick with pure WebForms and only use MVC for new projects. WebForms isn’t dead, just ask ScottGu.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I've tracked down a weird MySQL problem to the two different ways I was
I know there's a lot of other questions out there that deal with this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I need a function that will clean a strings' special characters. I do NOT
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.