Using ASP.NET MVC3 code inside a static-html CMS

痞子三分冷 提交于 2019-12-08 06:33:08

问题


We have a content management system here which basically pushes out static html pages. It's not tied to any particular programming language leaving each area the ability to use whatever they want depending on the web server they are pushing their pages out to. My area's web server runs both ColdFusion and Asp.NET, and I've been developing my first MVC3 application. It is just about finished and now I need to link up a public web form to my application's "Create" action. This basic HTML web form will be outside of MVC3 and Visual Studio and I'm guessing will reside inside of our CMS and it will pass the data onto my MVC3 application's controller. I am not sure how to go about this, can I just look at the html souce of my Create View code and then copy/paste the same HTML to my separate CMS page? Is there a way to "include" the Create View into my CMS, which doesn't even know ASP.NET exists?

If you need specifics, we're using Hannon Hill's Cascade Server. I've done plenty of pages using ColdFusion code to do html web forms but don't know where to begin using ASP.NET instead of ColdFusion inside of this CMS.


回答1:


As far as ColdFusion is concerned, it is just writing files. Could you just have it create a .aspx file that includes the relevant ASP.NET code?



来源:https://stackoverflow.com/questions/9503577/using-asp-net-mvc3-code-inside-a-static-html-cms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!