Click here to Skip to main content
12,405,700 members (64,514 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
hello

Suppose i have dynamic menu . download is parent and mobile is child. i want URL routing like following :

when i click download :

www.domain.com/download.html

when i click mobile :
www.domain.com/download/mobile.html

if i have article exam "DownloadGoolge" in mobile category this url is : www.domain.com/download/mobile/DownloadGoolge.html


how can do this dynamic?!
Posted 12-Jul-13 8:31am
Comments
Parwej Ahamad 12-Jul-13 14:34pm
   
If you are using asp.net 4.0+ then inbuilt is having routing features.
http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx
tree1371 12-Jul-13 14:42pm
   
yes i use asp.net 4.0 but this solution is not dynamic because in my project i don t know how i have child's menu

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 12 Jul 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100