Click here to Skip to main content
11,489,693 members (71,373 online)
Rate this: bad
good
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 9:31am
Comments
Parwej Ahamad at 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 at 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
0 Sergey Alexandrovich Kryukov 535
1 OriginalGriff 223
2 Andy Lanng 193
3 Maciej Los 190
4 _duDE_ 141
0 Sergey Alexandrovich Kryukov 9,488
1 OriginalGriff 8,425
2 Sascha Lefèvre 3,344
3 Maciej Los 3,066
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 12 Jul 2013
Copyright © CodeProject, 1999-2015
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