[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

(The Myna Bird)

1/8/2003 11:23:00 PM

Well. I've got a (perhaps not-so simple) question:

I've got a Page (WebForm1.aspx).
I've got a Panel in it (Panel1). This panel height and width are both
"100%" and it has Overflow=auto.
In the page I draw four anchors. Two of them are inside the Panel,
the others are just on the page. I've named the three anchors and try
to use them to go from anchor 1 -> anchor 2 -> anchor 3 -> anchor 2,
etc. without reloading the page.
It seems that I can link to the anchors outside the Panel and I can
link to the anchor that's at the top of the Panel. But I can not link
to the one that's on the bottom of the Panel.

The code of the page is this:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="Anchors.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5...
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="WebForm1" method="post" runat="server">
<DIV id="Panel1" style="OVERFLOW: auto; WIDTH: 100%; POSITION:
relative; HEIGHT: 100%" ms_positioning="GridLayout">
<a name="Primero" href="#Segundo">
<asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 256px;
POSITION: absolute; TOP: 56px" runat="server">Label 1</asp:Label>
</a><a name="Segundo" href="#Tercero">
<asp:Label id="Label2" style="Z-INDEX: 103; LEFT: 256px;
POSITION: absolute; TOP: 756px" runat="server">Label 2</asp:Label>
</a>
</DIV>
</form>
<a name="Tercero" href="#Primero">
<asp:Label id="Label3" style="Z-INDEX: 103; LEFT: 256px;
POSITION: absolute; TOP: 1156px" runat="server">Label 3</asp:Label>
</a><a name="Cuarto" href="#Tercero">
<asp:Label id="Label4" style="Z-INDEX: 103; LEFT: 356px;
POSITION: absolute; TOP: 1456px" runat="server">Label 4</asp:Label>
</a>
</body>
</HTML>

I didn't add code to WebForm1.aspx.cs.
What I want to know is: What am I doing wrong?
I think that perhaps what I'm tryng to do is not possible. So, I ask:
How do you make pages with a similar behaviour?

Thanks in advance.

The Myna Bird.

Sorry about my english (I'm not an english speaker ;) )