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
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 want to one help
I have 1 Webform application which is in the Asp.Net and it is working fine and now I want to develop new functionality in Asp.Net MVC and merge in existing application.
So please provide any tutorial or any link which provide information for merging MVC functionality in existing Asp.Net application.
Basically I need to develop application which working with both Asp.net webform functionality and also MVC functionality.
Combining web forms with MVC is entirely possible. See this blog post by Scott Hanselman for an introduction.
Sharing master pages: see this StackOverflow question
routing: In ASP.Net 4.0, routing has been enabled for web forms page routes (scottgu's blog)
ASP.NET Web Forms is a part of the ASP.NET web application framework. It is one of the three different programming models you can use to create ASP.NET web applications, the others being ASP.NET MVC and ASP.NET Web Pages.
I have read above lines in asp.net site. My understanding is A web page may refer to a html document retrieved from server and A Web Form is a thing in ASP.NET Application used to generate a HTML document(in dynamic manner)
But definition of web forms said by asp.net site confused me. OK I can understand MVC is a programming model used to create ASP.NET Web application.
What is a Web Form ? and What is a Web page ?
How Web page is a programming model to create ASP.Net web application
ASP.Net is Microsoft's technology stack for building dynamic web sites.
Within that stack, they support 3 different ways of generating a web page.
Web Forms is the oldest - it's been around since ASP.Net was born. It's tightly coupled into Visual Studio, and has "drag and drop" page building. Most people who care about how their HTML is constructed dislike Web Forms, because the "drag and drop" components can make it hard to generate semantic, valid HTML - though the latest version is a lot better.
ASP.Net MVC is an alternative to Web Forms - and it's a pretty decent MVC framework.
Web Pages is another alternative; it's more of a scripting/templating solution, similar to PHP. It doesn't have the overhead/safetynet of a proper framework behind it (like MVC), and it uses RAZOR to support the view engine.
For any non-trivial new projects, ASP.Net MVC is the industry standard.
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.
I know that asp.net MVC supports webservices call,
But I am asking in a wide scope that I have developed MVC application and I want to build an ERP that Integrates both asp.net 2005 application and my own MVC application.
So is it possible?
I am just an infant to think like this.
And this question comes in my mind when I saw a first video of webcast of WCF.
Yes you can - might need some modification of the asp.net app to include web service layer.
i would watch the MVC Storefront series http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit
for some tips on structuring the application and repository+ pattern
Yes, it is possible. I would build service calls (WCF, REST etc... what ever you are comfortable with) for your ERP. Once you have that your ASP.NET app can call them and so can your MVC app.