I have ASP.NET application in which some pages are designed using MVC3 architecture and some with classic ASP.NET (with view state ..etc) I want to merge these two projects in One. Or Is there any predefined Controller in MVC3 that can deal with this specific requirement?
Can we make some URL patterns to be dealt with Classic ASP.NET and some with MVC3 ?
Why YES you can!
http://www.hanselman.com/blog/IntegratingASPNETMVC3IntoExistingUpgradedASPNET4WebFormsApplications.aspx
He also has another post using a NuGet package to integrate the two...
Related
There is a problem that I have two applications.
One is used ASP.NET MVC, while the other is used ASP.NET WebForm.
I wonder if there are some ways to integrate two applications.
You can say anything about the idea of the integration or show some links talk about this.
Thank!!!
PS: I do know that Asp.net Webform is out of time,so do not tell why not change the Webform to MVC.
You could have them both as hybrid application. To do this (Visual Studio 2013+):
Click New Project > Web Forms, In the window select template as Web Forms and select options on Web Forms and MVC.
Add your existing files for Web Forms and MVC in the same solution.
Now config your Global.asax for MVC and declare appropriate routes and bind them in code.
Optional: You could also Scaffold to have WebAPI in your solution.
You this link for details of implementation with sample project.
I have an MVC project that needs to use SSRS for reporting. For this reason my MVC project now has a webform that holds the reportviewer control. From my MVC page I now need to pass certain parameters to the webform. What is the recommended way to do this? I’m not sure I want to use sessions for this purpose unless it is the recommended way. How do I post from the mvc view to the web form? I don’t think I can call it by controller name as the web form has no controller.
Please help.
In the past, I have maintained a legacy system that used the webform for report generated and an ASP.NET MVC in the new pages. I found out only one way to do that is using the Session to communicate between the webform and the ASP.NET MVC pages. So any other approaches will be welcome :)
I have a regular ASP.net website and I want to use RESTful API's. Can I use this without creating a new MVC site within Visual Studio?
Perhaps this can help you if you want to make use of ASP.NET MVC Web API in a web forms project to implement your RESTful API
If you want to mix in general ASP.NET MVC into an existing Web Forms application you could try something like this. There should also be a fair amount of literature on SO and the web on how to mix the two together in one project/solution
I am a ASP.net Web Form Developer , I simply want to know that is it possible to develop a mini ERP solution in ASP.net MVC ?
I have already developed such in ASP.net Web Forms but our company wants to re-write to whole app from scratch for bigger scale with increased modules and functionalities.
So can we go with ASP.net MVC this time rather than Web Forms?
Thanks in advance.
Yes it is possible. Everything you could do in WebForms could be done with MVC. After all ASP.NET MVC is based on the ASP.NET engine.
As far as I know, ASP.NET MVC leverages a lot of the features of ASP.NET Web Forms, one of these services is how to get the Html response from the template .aspx file (the view). Can asp.net mvc leverages any other platform to generate html over template files (something like PHP for example)?
EDIT: There is NO use case for this, just curiosity!
Yes, it can! The aspx model is just one of the view template mechanisms. There are others - you can even write your own. The key here is IViewEngine, with WebFormViewEngine being the aspx/ascx provider. ASP.NET MVC In Action covers some of this in chapter 6 "Customizing & Extending the ASP.NET MVC Framework".
you can use other ViewEngines
Spark
NHaml