简体   繁体   English

我可以在ASP网站上启用MVC吗?

[英]Can I enable MVC on my ASP web site?

I have a regular ASP.net website and I want to use RESTful API's. 我有一个常规的ASP.net网站,并且想使用RESTful API。 Can I use this without creating a new MVC site within Visual Studio? 我可以在Visual Studio中不创建新的MVC站点的情况下使用它吗?

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 如果您想在Web窗体项目中使用ASP.NET MVC Web API来实现RESTful API, 可能会对您有所帮助

If you want to mix in general ASP.NET MVC into an existing Web Forms application you could try something like this . 如果要将常规的ASP.NET MVC混合到现有的Web Forms应用程序中,则可以尝试这样的操作 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 关于SO和网络的文献也应该很多,关于如何在一个项目/解决方案中将两者融合在一起

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何为asp.net MVC网站启用CORS? - How to enable CORS for asp.net mvc web site? 如何使 ASP.NET MVC 站点像 ASP.NET Web 窗体站点一样可进行单元测试? - How can I make an ASP.NET MVC site as unit testable as an ASP.NET Web Forms site? 发布网站时我无法发送邮件-ASP.NET Web窗体 - I Can't Send Mail When I Publish My Web Site - ASP.NET Web Forms 我可以在MVC站点下的虚拟目录中使用传统的ASP.NET Web应用程序吗? - Can I have traditional ASP.NET Web Applications in Virtual Directories under MVC Site? 我可以在我的 asp.net mvc 核心中的根站点的 url 中添加一个 static 名称吗 - Can i add a static name inside the url for the root site inside my asp.net mvc core 无法访问我在ASP.NET网站中的文件 - Can't access my files in ASP.NET web site 启用从我的网站下载 - Enable downloading from my web site 在IIS默认网站下创建asp.net MVC Web应用程序或将其创建为新网站之间的区别 - Difference between creating my asp.net MVC web application ,under the IIS Default web site, or create it as a new web site 我如何在我的 asp.net MVC 核心 web 应用程序中引用 static 文件 - How i can reference static files inside my asp.net MVC core web application 如何将ASP.NET MVC Web应用程序的标识/身份验证部分移到类库中? - How can I move the identity/authentication part of my ASP.NET MVC web app into a class library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM