suppose i have aboutus page inside it i have internal link ,suppose i have a menu in default page ,in that menu there is aboutus page and subminue from it clled CEO,from this link how i can navigate to CEO part in aboutus page .
I wanna clarify the question, assume you have a page named "About.aspx" it contains many internal links as example "CEO", the problem come when I try to access the internal link via a proper route "/About/CEO". How can I map that route to the original link
"About.aspx#CEO
Web Develope...
Member
10 Points
37 Posts
UrlRouting for internal links in Dynamic Data
Nov 24, 2012 01:55 PM|LINK
How can I use asp.net 4.0 routing scheme to navigate an internal links in other page
the original page is something like this about.aspx#CEO I tried a lot with about/CEO
no way!!
</div>sjnaughton
All-Star
27318 Points
5458 Posts
MVP
Re: UrlRouting for internal links in Dynamic Data
Nov 24, 2012 02:04 PM|LINK
Are these internal pages other DD pages?
Always seeking an elegant solution.
Web Develope...
Member
10 Points
37 Posts
Re: UrlRouting for internal links in Dynamic Data
Nov 24, 2012 02:42 PM|LINK
internal link not pages...
suppose i have aboutus page inside it i have internal link ,suppose i have a menu in default page ,in that menu there is aboutus page and subminue from it clled CEO,from this link how i can navigate to CEO part in aboutus page .
did u get it ??
sjnaughton
All-Star
27318 Points
5458 Posts
MVP
Re: UrlRouting for internal links in Dynamic Data
Nov 24, 2012 02:53 PM|LINK
OK I generally use the Rquest to get the current URL and then you could append the internal url like this
Page.Request.UrlReferrer.PathAndQuery
you can then do
If(!IsPostBack)
HyperLink1.NavigateUrl = Page.Request.UrlReferrer.PathAndQuery + "#CEO";
hope that helps you need to do this in the page init or load.
Always seeking an elegant solution.
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: UrlRouting for internal links in Dynamic Data
Nov 25, 2012 01:58 AM|LINK
Hi,
I come here to check whether the problem is solved by the nice MVP or not……Welcome to feedback in detail information.
Web Develope...
Member
10 Points
37 Posts
Re: UrlRouting for internal links in Dynamic Data
Nov 25, 2012 12:25 PM|LINK
Thanks in advance Decker Dong but still nor solved i'm trying to solve it ...
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: UrlRouting for internal links in Dynamic Data
Nov 26, 2012 12:27 AM|LINK
So can you show your codes?
Hisham.NET
Participant
1794 Points
460 Posts
Re: UrlRouting for internal links in Dynamic Data
Nov 26, 2012 07:42 AM|LINK
Hi sjnaughton
I wanna clarify the question, assume you have a page named "About.aspx" it contains many internal links as example "CEO", the problem come when I try to access the internal link via a proper route "/About/CEO". How can I map that route to the original link "About.aspx#CEO
sjnaughton
All-Star
27318 Points
5458 Posts
MVP
Re: UrlRouting for internal links in Dynamic Data
Nov 26, 2012 09:23 AM|LINK
Hi Hisham, this issue here is a DynamicData page template is routed as a DynamicDataRoute and so does not follow the same as a normal web form.
Always seeking an elegant solution.
Hisham.NET
Participant
1794 Points
460 Posts
Re: UrlRouting for internal links in Dynamic Data
Nov 26, 2012 09:31 AM|LINK
Hi ...
Assume I have a web form in CustomPages folder and contacins two sections, how can i route to the internal link to reach the 2nd section?!!