IIS URL重写URL VS路由 [英] IIS URL Rewriting vs URL Routing

查看:239
本文介绍了IIS URL重写URL VS路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正打算使用URL路由的Web窗体应用程序。但是,读了一些 的帖子后,我不知道如果它是一个简单的方法。

I was planning to use url routing for a Web Forms application. But, after reading some posts, I am not sure if it is an easy approach.

是更好地使用Web表单 URL重写模块 ?但是,这只是为IIS7。起初,有一些嗡嗡声,URL路由完全从Asp.Net MVC脱钩,它可用于Web表单。

Is it better to use the URL Rewrite module for web forms? But, it is only for IIS7. Initially, there was some buzz that URL routing is totally decoupled from Asp.Net MVC and it could be used for web forms.

很乐意听到任何建议。

推荐答案

有一个伟大的职位这里有关从IIS团队中的一员,两者之间的差异。

There's a great post here about the differences between the two from a member of the IIS team.

一个警告我想提醒的是,对的WebForms,您需要使用路由时要小心。我写的你会如何使用与WebForms的路由,解决这些问题,希望可以帮助回答你的问题。

One caveat I would advise is that for WebForms, you need to be careful when using Routing. I've written a sample implementation of how you'd use routing with WebForms that addresses these concerns and hopefully helps answer your question.

这篇关于IIS URL重写URL VS路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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