将现有的 ASP.NET 应用程序(大型)转换为 Web 标准

发布于 2024-07-13 15:48:32 字数 276 浏览 4 评论 0原文

我有一个非常大的 ASP.NET 项目,我需要使其符合 Web 标准——该应用程序有两个部分: 1.) 允许用户“构建”网站的管理部分 2.) 组成用户站点的前端(许多 Web 控件、母版页、用户控件等...其中大部分只是代码)

我想知道人们对使该项目利用 Web 标准有何建议? 我应该更多地研究 MVC 吗? 我没有对 MVC 做过任何事情,但它似乎默认支持友好的 URL。

有人用现有的大型 ASP.NET 应用程序/站点完成过此操作吗?

提前致谢 :-)

I have a very large ASP.NET project that i need to make good with web standards -- the application has two parts:
1.) An administrative piece that allows users to 'build' sites
2.) Front end that makes up the users sites (many web controls, master pages, usercontrols, etc... much of it is just code)

I was wondering what poeples recomendations are for making this project utilize web standards? Should i look more into MVC? I havent done anything with MVC but it seems to support friendly URL's by default.

Has anyone done this with an existing large ASP.NET application/site?

thanks in advance :-)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

云之铃。 2024-07-20 15:48:32

网络标准是什么意思? 有效的 html/css? 无故事布局? 有效的 JavaScript?

我建议您在不同的浏览器中进行测试并修复发现的问题。

What do you mean by web standards? Valid html/css? no-tale layout? valid javascript?

I suggest you just test it in different browsers and fix the problems you find.

救星 2024-07-20 15:48:32

您可以选择两条路线。

1)撕掉它并重新开始
2)修改你所拥有的内容并逐步“一次一页”地更改它

我知道这是一个简单而明显的答案,但说实话,完成这两件事后,它们都是可行的。

现代 ASP.NET Web 应用程序可以符合标准,可以通过一些 URL 重写获得漂亮的 URL,并且可以将内容与设计分开。 您只需要在行动之前三思,确保使用 .NET 2.0 或 .NET 3.5 控件并检查输出以确保获得良好的标记。

如果不了解应用程序本身,就无法真正回答将旧 Web 应用程序转换为 MVC 的问题。 它可能非常适合它并且很容易,它可能是一个痛苦的世界。

一如既往,使用最好的工具来完成工作。

There are two routes you can take.

1) Rip it up and start again
2) Modify what you have and incrementally change it 'one page at a time'

I know that's a simple and obvious answer but truthfully, having done both, they are both viable.

A modern ASP.NET web applciation CAN be standards compliant, can have nice urls with some url re-writing and can seperate content from design. You just need to think before you act, make sure you use .NET 2.0 or .NET 3.5 controls and inspect the output to ensure you're getting good markup.

Converting an old web app to MVC can;'t really be answered without knowing the app itself. It might be perfectly suited to it and be easy, it might be a world of pain.

As always use the best tool for the job.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文