ASP.NET MVC 2应用程序中的URL重写 [英] URL Rewriting In ASP.NET MVC 2 Application

查看:70
本文介绍了ASP.NET MVC 2应用程序中的URL重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


你好,

Hello,


目前我正在使用Azure平台开发ASP.NET MVC 2应用程序。

Currently I am developing ASP.NET MVC 2 Application with Azure Platform.


你能否告诉我如何在ASP MVC 2应用程序中进行URL重写。

Can you please suggest me how to do URL Rewriting in ASP MVC 2 Application.


我有一些参考网站,但没有任何想法。

I got Some reference site but didn't get any idea.


在下面的参考站点中,它是路由演示。

Here in below reference site it is demo of Routing.


http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx


但他们已经完成了静态ID。我不知道如何传递id,因为id不会是静态的。 

But they have done with static ID. and i didn't get any idea how to pass id, Because id will not be static. 


请建议我如何在ASP.NET MVC 2应用程序中实现URL重写。

Please Suggest me how to achieve URL Rewriting In ASP.NET MVC 2 Application.



先谢谢,


Prashant Bhojani

Prashant Bhojani

推荐答案

你在错误的论坛上问(你可能会得到更好的运气)在ASP.NET论坛中),但为什么你使用ASP.NET 2.0?为什么不使用最新版本?
You're asking in the wrong forum (you probably will get better luck in ASP.NET forums), but why you're using ASP.NET 2.0? Why not the latest version?


这篇关于ASP.NET MVC 2应用程序中的URL重写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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