By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,148 Members | 748 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,148 IT Pros & Developers. It's quick & easy.

Name anchor

P: n/a
I am passing a querystring e.g.
http://office.cybase.co.uk/placeadve...=118#subimages

I want to use a named anchor. but this confuses my asp as it thinks officeid
is 118#subimages not 118
Jul 22 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
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

--

"Chris Kennedy" <ch**********@cybase.co.uk> a écrit dans le message de
news:On**************@TK2MSFTNGP09.phx.gbl...
I am passing a querystring e.g.
http://office.cybase.co.uk/placeadve...=118#subimages
I want to use a named anchor. but this confuses my asp as it thinks officeid is 118#subimages not 118

Jul 22 '05 #2

P: n/a
"Chris Kennedy" <ch**********@cybase.co.uk> wrote in message
news:On**************@TK2MSFTNGP09.phx.gbl...
I am passing a querystring e.g.
http://office.cybase.co.uk/placeadve...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:
Jul 22 '05 #3

P: n/a
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!

"Patrice" <no****@nowhere.com> wrote in message news:uL*************@TK2MSFTNGP09.phx.gbl...
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

--

"Chris Kennedy" <ch**********@cybase.co.uk> a écrit dans le message de
news:On**************@TK2MSFTNGP09.phx.gbl...
I am passing a querystring e.g.

http://office.cybase.co.uk/placeadve...=118#subimages

I want to use a named anchor. but this confuses my asp as it thinks

officeid
is 118#subimages not 118




Jul 22 '05 #4

P: n/a
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" <so*******@in-time.invalid> a écrit dans le message de
news:ei**************@TK2MSFTNGP10.phx.gbl...
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!

"Patrice" <no****@nowhere.com> wrote in message
news:uL*************@TK2MSFTNGP09.phx.gbl...
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

--

"Chris Kennedy" <ch**********@cybase.co.uk> a écrit dans le message de
news:On**************@TK2MSFTNGP09.phx.gbl...
I am passing a querystring e.g.

http://office.cybase.co.uk/placeadve...=118#subimages

I want to use a named anchor. but this confuses my asp as it thinks

officeid
is 118#subimages not 118


Jul 22 '05 #5

P: n/a
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!

"Patrice" <no****@nowhere.com> wrote in message news:#K**************@tk2msftngp13.phx.gbl...
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" <so*******@in-time.invalid> a écrit dans le message de
news:ei**************@TK2MSFTNGP10.phx.gbl...
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!

"Patrice" <no****@nowhere.com> wrote in message
news:uL*************@TK2MSFTNGP09.phx.gbl...
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

--

"Chris Kennedy" <ch**********@cybase.co.uk> a écrit dans le message de
news:On**************@TK2MSFTNGP09.phx.gbl...
I am passing a querystring e.g.

http://office.cybase.co.uk/placeadve...=118#subimages

I want to use a named anchor. but this confuses my asp as it thinks

officeid
is 118#subimages not 118





Jul 22 '05 #6

P: n/a
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" <so*******@in-time.invalid> a écrit dans le message de
news:%2****************@TK2MSFTNGP09.phx.gbl...
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!

"Patrice" <no****@nowhere.com> wrote in message
news:#K**************@tk2msftngp13.phx.gbl...
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" <so*******@in-time.invalid> a écrit dans le message de
news:ei**************@TK2MSFTNGP10.phx.gbl...
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!

"Patrice" <no****@nowhere.com> wrote in message
news:uL*************@TK2MSFTNGP09.phx.gbl...
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

--

"Chris Kennedy" <ch**********@cybase.co.uk> a écrit dans le message de
news:On**************@TK2MSFTNGP09.phx.gbl...
I am passing a querystring e.g.

http://office.cybase.co.uk/placeadve...=118#subimages

I want to use a named anchor. but this confuses my asp as it thinks

officeid
is 118#subimages not 118



Jul 22 '05 #7

P: n/a
Thats what I was thinking too......

--
Regards

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

Keeping it FREE!

"Patrice" <no****@nowhere.com> wrote in message news:OE**************@TK2MSFTNGP15.phx.gbl...
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" <so*******@in-time.invalid> a écrit dans le message de
news:%2****************@TK2MSFTNGP09.phx.gbl...
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!

"Patrice" <no****@nowhere.com> wrote in message
news:#K**************@tk2msftngp13.phx.gbl...
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" <so*******@in-time.invalid> a écrit dans le message de
news:ei**************@TK2MSFTNGP10.phx.gbl...
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!

"Patrice" <no****@nowhere.com> wrote in message
news:uL*************@TK2MSFTNGP09.phx.gbl...
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

--

"Chris Kennedy" <ch**********@cybase.co.uk> a écrit dans le message de
news:On**************@TK2MSFTNGP09.phx.gbl...
> I am passing a querystring e.g.
>

http://office.cybase.co.uk/placeadve...=118#subimages
>
> I want to use a named anchor. but this confuses my asp as it thinks
officeid
> is 118#subimages not 118
>
>





Jul 22 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.