URL路由是什么意思 [英] What is meant by URL routing

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

问题描述

朋友...有人能解释一下URL路由的含义吗?并尝试给我一个小的例子,以便我能了解更多.

在此先感谢...

Hi Friends... Can any one explain me what URL routing is meant by? And try to give me small example also so that I can understand more.

Thanks in advance...

推荐答案

您好,Venkat,
使用以下链接,您肯定会从中获得有用的信息.
简介:
http://msdn.microsoft.com/en-us/library/cc668201.aspx [ ^ ]
施工:
http://msdn.microsoft.com/en-us/library/cc668176.aspx [ ^ ]
视频:
http://www.asp.net/mvc/videos/mvc-2/how-do-i/an-introduction-to-url-routing [
Hi Venkat,
Use following links you will get surely useful information from it..

Introduction:
http://msdn.microsoft.com/en-us/library/cc668201.aspx[^]
Construction:
http://msdn.microsoft.com/en-us/library/cc668176.aspx[^]
A video:
http://www.asp.net/mvc/videos/mvc-2/how-do-i/an-introduction-to-url-routing[^]


最简单的行为Web服务器(不一定使用ASP.NET)是这样的:每个URL指向服务器端的一个不同文件;该文件用于直接或通过某些服务器端处理将其显示为单独的网页.在许多应用程序中可能会很尴尬.用户需要具有描述性的URL,使用浏览器导航的能力以及描述性的可预测URL链,这可能与文件和页面内容之间的一一对应关系相矛盾.

您可以使用ASP.NET Routing定义更灵活的映射.

从此处开始:
http://msdn.microsoft.com/en-us/library/cc668201.aspx [ ^ ].

在本文中,您将找到一些简单且不言自明的示例.

-SA
The simplest behavior of the Web server (not necessarily using ASP.NET) is this: each URL points to a different file on server side; and the file is used to show it as a separate Web page, directly or through some server-side processing. It can be quite awkward in many applications. The user needs to have descriptive URLs, the ability to use browser navigation and descriptive predictable URL chains which may contradict to one-to-one correspondence between files and page contents.

You can define more flexible mapping using ASP.NET Routing.

Start here: http://msdn.microsoft.com/en-us/library/cc668201.aspx[^].

In this article, you will find some simple and self-explaining examples.

—SA


http://msdn.microsoft.com/zh-cn/magazine/dd347546.aspx#id0070003

按照上面的链接了解URL路由
http://msdn.microsoft.com/en-us/magazine/dd347546.aspx#id0070003

follow the above link to understand the URL Routing


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

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