ASP.NET Winforms and MVC coexistence

  • Thread starter Thread starter Max2006
  • Start date Start date
M

Max2006

Hi,

We have an existing ASP.NET application and we would like to leverage MVC
within the existing app.

Is it possible? Is there any article or guideline explains how have MVC
within a folder of an existing application?

Thank you.Max
 
Hi Max,

Do you mean coexistence of ASP.NET MVC and standard webform pages?

Based on my understanding, it is not quite recommended to make MVC
application coexisting with standard asp.net webform(at least in the same
web folder). This is because ASP.NET MVC has its own http module and
pipeline for processing webrequests. And webform/aspx is handled
differently from standard ASP.NET web application. You can create an
ASP.NET MVC application and check the web.config to find all those MVC
specfic httpmodule/httphandler configurations.

If you do need to use both MVC and standard aspx webform behavior in your
web application. Onething I can get is use MVC as the main configuration
for the ASP.NET application. And customize the httpmodules and handlers for
some particular sub folder so as to make aspx pages in those sub folder
still work as standard asp.net page.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.


--------------------
 
Hi Max,

Do you still have any questions on this issue?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

--------------------
 
Back
Top