472,952 Members | 2,100 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 1457
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
4
by: deko | last post by:
I use named anchors to take users to specific parts of a long page. But I want to add some processing and do some things with my nav bar when users go to certain sections delineated by named...
6
by: Daniele Baroncelli | last post by:
Hi guys, I would like to change the text in an anchor. es. from <a id="idanchor">oldtext</a> to
3
by: AC | last post by:
Trying to get anchor names to work - a simple html concept - why so difficult? original post: > Ok, I know in html to jump to different parts of the same > page you simply use anchor name...
3
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a...
10
by: elibol | last post by:
Hi, Is there an event that fires when the back or forward button on a browser is pressed? I need an event to fire when someone clicks the back or forward button after an anchor has been set. ...
16
by: Frances | last post by:
<a href="#1"> <a name="#1"> this link is not working in FF (works fine in IE..) would appreciate thoughts/suggestions.. thank you.. Frances
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...
3
by: Joseph Gruber | last post by:
Hi all -- I have two questions. First, I'm adding a control to my form at runtime and the control/form seems to ignore the anchor property of the runtime control. Any idea how I can get a...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.