468,121 Members | 1,425 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,121 developers. It's quick & easy.

Anchor Names in ASP

AC
Ok, I know in html to jump to different parts of the same
page you simply use anchor name tags. You place the
naming of a section (i.e. <a name="spot1"></a>) in the
html at the spot you want to name.

Well, in asp, .net places the html code in no particular
order using absolute positioning to tell the browser where
to put everything. How then do I place the name tag in
the right spot if nothing else is in order? I cant use top
or left in the name tag... this is bugging me.

Anthony
Nov 17 '05 #1
5 1339
Hi Anthony,

You can do this with JavaScript. Look into the ScrollIntoView() method. It
should give you what you need to be able to achieve the same results as
named anchors.

http://msdn.microsoft.com/library/de...llintoview.asp

HTH,
Bill P.
"AC" <ac********@cantor.com> wrote in message
news:0a****************************@phx.gbl...
Ok, I know in html to jump to different parts of the same
page you simply use anchor name tags. You place the
naming of a section (i.e. <a name="spot1"></a>) in the
html at the spot you want to name.

Well, in asp, .net places the html code in no particular
order using absolute positioning to tell the browser where
to put everything. How then do I place the name tag in
the right spot if nothing else is in order? I cant use top
or left in the name tag... this is bugging me.

Anthony

Nov 17 '05 #2
I'm not exactly sure, but I suppose you could put the anchor at an absolute
position as well.

You don't *have* to use absolute positioning Personally I don't use absolute
positioning. I change pageLayout to FlowLayout on all pages.
HTH
Brian W
"AC" <ac********@cantor.com> wrote in message
news:0a****************************@phx.gbl...
Ok, I know in html to jump to different parts of the same
page you simply use anchor name tags. You place the
naming of a section (i.e. <a name="spot1"></a>) in the
html at the spot you want to name.

Well, in asp, .net places the html code in no particular
order using absolute positioning to tell the browser where
to put everything. How then do I place the name tag in
the right spot if nothing else is in order? I cant use top
or left in the name tag... this is bugging me.

Anthony

Nov 17 '05 #3
AC
Bill,
thanks for the response, that may work but i'm really
trying to figure out how to get name anchors working -
there's no reason they shouldn't.
Anthony
-----Original Message-----
Hi Anthony,

You can do this with JavaScript. Look into the ScrollIntoView() method. Itshould give you what you need to be able to achieve the same results asnamed anchors.

http://msdn.microsoft.com/library/default.asp? url=/workshop/author/dhtml/reference/methods/scrollintoview
..asp
HTH,
Bill P.
"AC" <ac********@cantor.com> wrote in message
news:0a****************************@phx.gbl...
Ok, I know in html to jump to different parts of the same page you simply use anchor name tags. You place the
naming of a section (i.e. <a name="spot1"></a>) in the
html at the spot you want to name.

Well, in asp, .net places the html code in no particular
order using absolute positioning to tell the browser where to put everything. How then do I place the name tag in
the right spot if nothing else is in order? I cant use top or left in the name tag... this is bugging me.

Anthony

.

Nov 17 '05 #4
VS.NET defaults to positioning elements on the page using "GridLayout"
(which just really means CSS Absolute Positioning). Change your page
properties to use FlowLayout instead and you'll be able to put items in a
more linear positioning scheme.
"AC" <ac********@cantor.com> wrote in message
news:0a****************************@phx.gbl...
Ok, I know in html to jump to different parts of the same
page you simply use anchor name tags. You place the
naming of a section (i.e. <a name="spot1"></a>) in the
html at the spot you want to name.

Well, in asp, .net places the html code in no particular
order using absolute positioning to tell the browser where
to put everything. How then do I place the name tag in
the right spot if nothing else is in order? I cant use top
or left in the name tag... this is bugging me.

Anthony

Nov 18 '05 #5
Hi Anthony,

Thank you for posting to the MSDN newsgroups.

Firstly I want to thank all the people who provided help in this issue.
Have you tried the suggestion of using the "FlowLayout"?
...
<body MS_POSITIONING="FlowLayout">
...
FlowLayout
Elements are added without absolute positioning attributes. Web browsers
arrange elements in the order that they occur on the page, from top to
bottom. You cannot drag elements across the Design view surface, or use the
positioning grid.

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Chris Kennedy | last post: by
6 posts views Thread by Daniele Baroncelli | last post: by
3 posts views Thread by AC | last post: by
10 posts views Thread by elibol | last post: by
16 posts views Thread by Frances | last post: by
5 posts views Thread by Randy Webb | last post: by
3 posts views Thread by Joseph Gruber | last post: by
18 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.