ASP.NET MVC(C#)中的经典ASP [英] Classic ASP in ASP.NET MVC (C#)

查看:73
本文介绍了ASP.NET MVC(C#)中的经典ASP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个想要(最终)转换为ASP.NET MVC的应用程序.我想进行全面的服务升级(到ASP.NET),但想使用当前的asp东西来运行当前的功能,这样我就可以在升级到新框架的同时升级小块产品.该站点严重依赖不太成熟的VB6 DLL,因此我们也将最终对其进行升级,有可能用Web服务替换当前功能.是否有快速解决方案,或者此任务是3个月以上的任务?另外,我确信以前已经考虑过,MVC的优点在于,尽管我不确定从哪里开始,但我认为有办法解决这个问题.转换此应用程序(在40个小时左右的时间内)的最快方法是什么,我可以在其中进行小的配置更改,并使它在ASP.NET MVC中工作?

I have an application that I want to (eventually) convert to ASP.NET MVC. I want to do an all out service upgrade (to ASP.NET) but want to use current asp stuff to run the current functionality so I can upgrade small pieces while making incremental upgrades to the new framework. This site is heavily dependent on a VB6 DLL that is not very mature, so we will also want to upgrade this eventually too, potentially replacing the current functionality with web services. Is there a quick fix or is this task a 3 month + task? Also, I am sure it has been thought of before, the beauty of the MVC is that I would think there is a way to tackle this, though I am unsure of where to start. What would be the quickest way to convert this application (in 40 or so hours), where I can just make small configuration changes and have this working in ASP.NET MVC?

推荐答案

简短的答案是……您不能.经典asp和asp.net之间的差异不仅在语法上而且在整体设计上都非常明显. MVC不仅看起来与经典的ASP类似,尽管它看起来也是如此.任何转换都需要时间,思想和精力才能使其完全正常运行.

The short answer is... You can't. The differences between classic asp and asp.net are fairly drastic not just in syntax but in overall design. MVC is not just a similar implementation to classic asp although it may look that way. Any conversion will take time, thought and effort to get it completely working.

好消息是,您可以运行SxS,因此实际上可以在设置为ASP.NET或ASP.NET MVC站点的站点下运行经典的ASP代码.因此,使用一些胶带,您可以将升级后的解决方案逐个调配在一起.

The good news though, is that you can run them SxS so you can actually have classic asp code running under a site that is setup as an ASP.NET or ASP.NET MVC site. So with some duct tape you can peice together your upgraded solution part by part.

这篇关于ASP.NET MVC(C#)中的经典ASP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆