473,471 Members | 2,533 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1472
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.