Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 03, 2012 02:51 PM by raduenuca
Member
4 Points
25 Posts
May 02, 2012 07:08 PM|LINK
Greetings Gents,
Is there a way to convert Web Application C# to MVC model or I should add pages one by one in contrroller and view. please advise
thanks in advance.
All-Star
135110 Points
21675 Posts
Moderator
MVP
May 02, 2012 07:30 PM|LINK
You can not have web forms controls work in MVC application. So you can add one by one or not - it will not work with the Actions.
Please detail your business idea.
124 Points
45 Posts
May 03, 2012 01:51 PM|LINK
It is not possible to convert Web Forms project to MVC. You should rewrite your project manually, with significant architecture changes.
24675 Points
4250 Posts
May 03, 2012 02:51 PM|LINK
You can run ASP.NET WebForms and MVC side by side in the same application:
http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx
http://weblogs.asp.net/rajbk/archive/2010/05/11/running-asp-net-webforms-and-asp-net-mvc-side-by-side.aspx
there some limitations but as Andrei said you should explain what you want to achieve in more details.
safwa_man
Member
4 Points
25 Posts
How Convert Web Application C# to MVC Model ?
May 02, 2012 07:08 PM|LINK
Greetings Gents,
Is there a way to convert Web Application C# to MVC model or I should add pages one by one in contrroller and view. please advise
thanks in advance.
ignatandrei
All-Star
135110 Points
21675 Posts
Moderator
MVP
Re: How Convert Web Application C# to MVC Model ?
May 02, 2012 07:30 PM|LINK
You can not have web forms controls work in MVC application. So you can add one by one or not - it will not work with the Actions.
Please detail your business idea.
DenisM
Member
124 Points
45 Posts
Re: How Convert Web Application C# to MVC Model ?
May 03, 2012 01:51 PM|LINK
It is not possible to convert Web Forms project to MVC. You should rewrite your project manually, with significant architecture changes.
raduenuca
All-Star
24675 Points
4250 Posts
Re: How Convert Web Application C# to MVC Model ?
May 03, 2012 02:51 PM|LINK
You can run ASP.NET WebForms and MVC side by side in the same application:
http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx
http://weblogs.asp.net/rajbk/archive/2010/05/11/running-asp-net-webforms-and-asp-net-mvc-side-by-side.aspx
there some limitations but as Andrei said you should explain what you want to achieve in more details.
Radu Enuca | Blog