ASP.NET MVC (C#) 中的经典 ASP

Classic ASP in ASP.NET MVC (C#)(ASP.NET MVC (C#) 中的经典 ASP)
本文介绍了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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)