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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:48:35+00:00 2026-05-11T10:48:35+00:00

I’m in the process of adding ASP.NET MVC to a WebForms app. One of

  • 0

I’m in the process of adding ASP.NET MVC to a WebForms app. One of the neat features of an ASP.NET MVC solution that you create from scratch is that a right click on the solution explorer and Add > New Item… will give a list of templates which include the MVC templates. However, in a WebForms app these templates don’t appear.

I thought that there might be a setting in the .sln solution file that indicated that one was an ASP.NET MVC app but I couldn’t find anything that that stuck out.

EDIT: To expand the question, how does Visual Studio know to add a ‘Controller…’ menu item on to the ‘Add’ menu when you right click on the Controllers folder in the Solution Explorer of an MVC app? Likewise it adds a ‘View…’ menu item to the ‘Add’ menu when you right click on the Views folder. Where does Visual Studio get this info from and how can I add those 2 folders to another web app and get the same functionality?

Ideas?

  • 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. 2026-05-11T10:48:36+00:00Added an answer on May 11, 2026 at 10:48 am

    I believe that the logic for that is contained in the dll

    Microsoft.VisualStudio.Web.ExtensionsUI

    Which is registered in the Project template used when you create a new ASP.NET MVC project:

    <WizardExtension>   <Assembly>     Microsoft.VisualStudio.Web.Extensions,      Version=9.0.0.0,      Culture=neutral,      PublicKeyToken=31bf3856ad364e35   </Assembly>   <FullClassName>     Microsoft.VisualStudio.Web.Mvc.TemplateWizard   </FullClassName> </WizardExtension> 

    C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\CSharp\Web\1033\MvcWebApplicationProjectTemplatev1.cs.zip

    You could probably also mess around with the Project Type Guids in your .xxproj file:

    <ProjectTypeGuids>   {603c0e0b-db56-11dc-be95-000d561079b0};   {349c5851-65df-11da-9384-00065b846f21};   {fae04ec0-301f-11d3-bf4b-00c04f79efbc} </ProjectTypeGuids> 

    Seem to be the default ones for an ASP.NET MVC project, compare those with the ones in your web application, and go from there.

    However, in a lot of these circumstances I’d agree with gisresearch: it’s often easier to create the more complex project (the MVC one) first, and then move the origininal into it.

    Also, there’s nothing to stop you having multiple projects hosted in the same web application – pull the common logic from the web application into a shared class library, and then reference that from a clean MVC app, with a slightly different namespace, and then merge the two sites within IIS, drop the dlls into a shared bin folder (or strongly name them and put them in the global assembly cache), share the images/scripts, and away you go – you just need to take care with the Global.asax, which would be common to both.

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

Sidebar

Ask A Question

Stats

  • Questions 244k
  • Answers 244k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You need to call Select and return a filtered child… May 13, 2026 at 8:06 am
  • Editorial Team
    Editorial Team added an answer A list of special method names is here, but it's… May 13, 2026 at 8:06 am
  • Editorial Team
    Editorial Team added an answer You cannot override the default namespace used by XPath. In… May 13, 2026 at 8:06 am

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I've got a string that has curly quotes in it. I'd like to replace
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
In order to apply a triggered animation to all ToolTip s in my app,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.