开发者

webforms app as area of mvc application

i have main application, on mvc, with sexy routing, ant etc. can i add existing webfroms application, as area of that application? simple copy pase, causes many开发者_StackOverflow errors at compile time, maybe some dll doesnt exist, or config is not right? where can i read about it?


Yes, it's possible. Professional ASP.NET MVC 1.0 has a chapter dedicated to Webforms and MVC together. There are also other Stack Overflow questions that deal with it:

  • ASP.NET MVC and WebForms coexisting
  • Problem mixing Webforms in an MVC application


I don't think you can copy/paste your old ASP.Net ode and expect it to run under ASP.Net MVC.

But you have at least two options:

  • I think it is possible to include an ASP.Net user control in an ASP.Net MVC site
  • And you could always include the old site in an IFrame on your new site

Neither option is perfect, and may not be useable, but I don't think you will get further with your old code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜