Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 26, 2012 11:35 AM by sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Nov 26, 2012 09:52 AM|LINK
I would add a static ID to your section you can do this by surrounding by a DIV or setting
ClientIDMode="Static"
then as I showed above use the Request URL and add #<ID> where ID is the statics ID of the html element :)
Participant
1794 Points
460 Posts
Nov 26, 2012 10:30 AM|LINK
Hi ...
The problem which I facing in routing, this is what i wrote in global.asax
routes.MapPageRoute("test", "About", "~/About.aspx#CEO");
Nov 26, 2012 11:07 AM|LINK
to generate routes like that you will need to write you own custom Route Handler as I do not believe the default one will handle the #
Nov 26, 2012 11:32 AM|LINK
Hi ..
Do you think Microsoft forgot this situation?!! I did a trcik using
window.location.hash
but i'm still fighting to find a solution using pure routing technique ..
Nov 26, 2012 11:35 AM|LINK
It's not something I have ever thought about using before this thread, I am however thinking about it now though, I will try and have a lok today.
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: UrlRouting for internal links in Dynamic Data
Nov 26, 2012 09:52 AM|LINK
I would add a static ID to your section you can do this by surrounding by a DIV or setting
then as I showed above use the Request URL and add #<ID> where ID is the statics ID of the html element :)
Always seeking an elegant solution.
Hisham.NET
Participant
1794 Points
460 Posts
Re: UrlRouting for internal links in Dynamic Data
Nov 26, 2012 10:30 AM|LINK
Hi ...
The problem which I facing in routing, this is what i wrote in global.asax
routes.MapPageRoute("test", "About", "~/About.aspx#CEO");sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: UrlRouting for internal links in Dynamic Data
Nov 26, 2012 11:07 AM|LINK
to generate routes like that you will need to write you own custom Route Handler as I do not believe the default one will handle the #
Always seeking an elegant solution.
Hisham.NET
Participant
1794 Points
460 Posts
Re: UrlRouting for internal links in Dynamic Data
Nov 26, 2012 11:32 AM|LINK
Hi ..
Do you think Microsoft forgot this situation?!! I did a trcik using
but i'm still fighting to find a solution using pure routing technique ..
sjnaughton
All-Star
27391 Points
5485 Posts
MVP
Re: UrlRouting for internal links in Dynamic Data
Nov 26, 2012 11:35 AM|LINK
It's not something I have ever thought about using before this thread, I am however thinking about it now though, I will try and have a lok today.
Always seeking an elegant solution.