Name anchor

P

Patrice

Believe it or not I don't remember to have use bot anchor names and
parameters ???!!

My first though would be that anchor name should be after the page name, not
after the parameters. You may want to quick check this in a spec but I'm
fairly sure of that...

Patrice
 
M

McKirahan

Chris Kennedy said:
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
is 118#subimages not 118

A Google on "querystring named anchor" found:

http://www.webmasterworld.com/forum21/8405.htm

Which includes the following:

Section 4 in RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) clearly states:

"The term "URI-reference" is used here to denote the common usage of a
resource identifier. A URI reference may be absolute or relative,
and may have additional information attached in the form of a
fragment identifier. However, "the URI" that results from such a
reference includes only the absolute URI after the fragment
identifier (if any) is removed and after any relative URI is resolved
to its absolute form."

In other words, according to the RCF the URL is split by the fragment
identifier first (#), if present, and *then* parsed as an address.
It's therefore imperative that the fragment identifier is placed last in the
URL, which may also be combined with a query string as in:
 
P

Patrice

Oh... Interesting. so you have to handle this yourself... ins't it something
that the QueryString property should do ? I'll try to see how it behaves in
ASP.NET...

Patrice

--

"Steven Burn" <[email protected]> a écrit dans le message de
The anchor name is usually stored at the end of the URL, for example;

http://freeware.it-mate.co.uk/?Cat=Security#135

If the query is getting mixed up I'd personally be inclined to blame the way
the querystring is being extracted.

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 
S

Steven Burn

For the example I gave, I am simply using;

sTemp = LCase(Request.Querystring("Cat"))

This works just fine for me, and the anchor works without any problems.

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 
P

Patrice

Ah yes. Actually Chris just said it wasn't working but doesn't show his
code. Perhaps he uses just Request.QueryString ?

Patrice

--

"Steven Burn" <[email protected]> a écrit dans le message de
For the example I gave, I am simply using;

sTemp = LCase(Request.Querystring("Cat"))

This works just fine for me, and the anchor works without any problems.

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 

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

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top