Click here to Skip to main content
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 OriginalGriff 190
1 Jochen Arndt 165
2 PIEBALDconsult 150
3 BillWoodruff 148
4 DamithSL 140
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


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