473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Anchor in a request string....

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

Nov 5 '06 #1
2 2081
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.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Michael Lang" <micklang at gmail.comwrote in message
news:uS**************@TK2MSFTNGP04.phx.gbl...
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

Nov 5 '06 #2
"Michael Lang" <micklang at gmail.comwrote in message
news:uS**************@TK2MSFTNGP04.phx.gbl...
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.
Nov 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Niall Linden | last post by:
i have a form with lots of data, and when they click on a button it calls some javascript which sets values in hidden fields then posts to itself (usual stuff) now the problem is that i would...
2
by: Astra | last post by:
Hi everybody Need your help. I have a DB-extracted list of say 5 items per page, which have links on each one that takes you to more detailed info on the 'clicked' particular item. When you...
7
by: Chris Kennedy | last post by:
I am passing a querystring e.g. http://office.cybase.co.uk/placeadvert/addimages.asp?maximage=3&officeid=118#subimages I want to use a named anchor. but this confuses my asp as it thinks officeid...
7
by: Eric | last post by:
I am certain the answer will be 'NO', but I wanted to ask anyway just incase I have missed something. Everyone knows that one pass data to a page in an anchor tag by using the GET Method: <a...
1
by: Todd | last post by:
I am trying to mimic the html anchor tag. I have created a class; Public Class anchor <XmlAttributeAttribute()> _ Public href As String Public title As String End Class and get the...
3
by: DonnyW | last post by:
I am working on an application that displays a list of items (biglist.aspx). With each item, there is a link that takes the user to another aspx page for updating the specific details of that item...
6
by: Greg Collins [Microsoft MVP] | last post by:
In ASPX, how does one get the named anchor from a URL? Its not in any of the ServerVariables. If a url is: http://www.somerandomsite.com/page.aspx#named_anchor How do I get the value of the...
5
by: Randy Webb | last post by:
The list below has the current section number, proposed anchor name, and then the current title of that section. Some make sense, some don't. There are a few that don't have proposed anchor names...
2
by: TheITGuyFromNY | last post by:
To set this up, I have a parent window with a list of things (doesn't matter what they are, but they are loaded by the page dynamically from a database with ASP server-side script. So, next to each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.