Click here to Skip to main content
15,915,324 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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...
Posted
Comments
Sergey Alexandrovich Kryukov 2-Jan-12 1:54am    
What is broken where you live: Wikipedia, Google or MSDN?
--SA

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[^]
 
Share this answer
 
Comments
Venkat_C6 2-Jan-12 1:46am    
Ok thank u very much. I will try those links.
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
 
Share this answer
 
Comments
Venkat_C6 2-Jan-12 1:57am    
Thank you..
Sergey Alexandrovich Kryukov 2-Jan-12 4:09am    
You are welcome.
If this explains things to you, please accept the answer formally (green button) -- thanks.

Happy New Year!
--SA
Venkat_C6 2-Jan-12 7:34am    
Thank you & same to you...
http://msdn.microsoft.com/en-us/magazine/dd347546.aspx#id0070003

follow the above link to understand the URL Routing
 
Share this answer
 
v2
Comments
Venkat_C6 2-Jan-12 7:30am    
Thank you...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900