473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

document linking

I'd like to link to another part of my document within my
aspx page.

I have the following code in my HTML:

<code>
<A HREF="#PositionsHeld">Positions Held</A>

<asp:label id="lblPosition" style="Z-INDEX: 107; LEFT:
16px; POSITION: absolute; TOP: 816px"
runat="server" Font-
Underline="True" Font-Bold="True" Font-
Size="Larger">Positions Held</asp:label>

<H2 id="PositionsHeld"></H2>
</code>

I would like the link to go directly right after the
above label. I thought I would be achieving this by using
the "<H2 id="PositionsHeld"></H2>" . When I click on the
link, it brings me down some on the document, but nowhere
near this label.

What am I doing wrong?
Nov 18 '05 #1
2 1100
Hi Bill,

Maybe you want to try the other syntax for the anchor?

<a href="#PositionsHeld" target=_self >Positions Held</a>

<H2><A name="PositionsHeld">Info here</A></H2>
"bill yeager" <an*******@discussions.microsoft.com> wrote in message
news:18*****************************@phx.gbl...
I'd like to link to another part of my document within my
aspx page.

I have the following code in my HTML:

<code>
<A HREF="#PositionsHeld">Positions Held</A>

<asp:label id="lblPosition" style="Z-INDEX: 107; LEFT:
16px; POSITION: absolute; TOP: 816px"
runat="server" Font-
Underline="True" Font-Bold="True" Font-
Size="Larger">Positions Held</asp:label>

<H2 id="PositionsHeld"></H2>
</code>

I would like the link to go directly right after the
above label. I thought I would be achieving this by using
the "<H2 id="PositionsHeld"></H2>" . When I click on the
link, it brings me down some on the document, but nowhere
near this label.

What am I doing wrong?


Nov 18 '05 #2
Ken, I tried it, but it still doesn't scroll to the
destination anchor tag...
-----Original Message-----
Hi Bill,

Maybe you want to try the other syntax for the anchor?

<a href="#PositionsHeld" target=_self >Positions Held</a>
<H2><A name="PositionsHeld">Info here</A></H2>
"bill yeager" <an*******@discussions.microsoft.com> wrote in messagenews:18*****************************@phx.gbl...
I'd like to link to another part of my document within my aspx page.

I have the following code in my HTML:

<code>
<A HREF="#PositionsHeld">Positions Held</A>

<asp:label id="lblPosition" style="Z-INDEX: 107; LEFT:
16px; POSITION: absolute; TOP: 816px"
runat="server" Font-
Underline="True" Font-Bold="True" Font-
Size="Larger">Positions Held</asp:label>

<H2 id="PositionsHeld"></H2>
</code>

I would like the link to go directly right after the
above label. I thought I would be achieving this by using the "<H2 id="PositionsHeld"></H2>" . When I click on the link, it brings me down some on the document, but nowhere near this label.

What am I doing wrong?


.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: UndoMiel | last post by:
Hello, I have created an XML document using the libxml2 library in C. Now I've created an xsl style sheet to transform the XML document into a nice, readable html page.
6
by: David List | last post by:
I'm having a problem using different properties of the document object in the example javascripts in my textbook with browsers that identify themselves as using the Mozilla engine. One example of...
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
1
by: Pavs | last post by:
This may not be the place to ask however i am looking for resources on how i may document data I am backing up from an oracle database to MS Access. Basically I have my oracle database and i...
8
by: Asma | last post by:
Dear Sir, I am trying to find a way to open a Word document using C language and read the text of word doc into a variable. (Turbo C on Dos 6.0). Can anyone please tell me which libraries in...
2
by: news.microsoft.com | last post by:
Hello, How can i link to a document in the root folder of my asp.net app. I do not know at runtime wherein my subfolder i'm. I just want to link to a document in my root folder. Many Thanks in...
13
by: Lloyd Dupont | last post by:
In the good old days I believe people were using the arcane technology which came to be known as COM+ to embed other application's document in their own document. Like a Word with document a...
3
by: thompson_38 | last post by:
I am currently working on a C# application that uses an axWebBrowser control which displays HTML pages. This is being done to reuse an existing web application which resides on a client's...
14
klarae99
by: klarae99 | last post by:
I am wondering if access 2003 has the ability to open a linked Word Document, without that document being related directly to a table (I do not need to merge data with the document). I am...
2
by: mburns | last post by:
Hello all- I was wondering if it is possible to link an Access query or table to a Word document and pull specific information into Word by manually entering a unique identifier, which would then...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.