Anchor in a request string....

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
 
M

Mark Fitzpatrick

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.
 
M

Mark Rae

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top