Anchor in a request string....

  • Thread starter Thread starter Michael Lang
  • Start date Start date
M

Michael Lang

Is there anyway to get an anchor passed on a request string.... e.g

mypage.aspx#myanch

in the mypage code behind i want to be able to get the string "myanch"...

Basically I want to navigate to an element in the page, but i also want to
change a property on this element

I've yet to find any way of getting the anchor from the query string... I'm
beginning to think I'm going to have to use....

mypage?a=myanch

process the parameter and then redirect the request to mypage#myanch

Surely there's a better way.

Any suggestions?

Michael
 
Unfortunately, as far as I know, the target isn't even passed to the server
so it's unavailable even by getting the raw URL.
 
I've yet to find any way of getting the anchor from the query string...
I'm beginning to think I'm going to have to use....

mypage?a=myanch

process the parameter

I think you're right.
and then redirect the request to mypage#myanch

No need to do that - just set focus on the control in question.
 
Back
Top