Use Anchors in ASP page

Discussion in 'ASP General' started by John Beschler, Jul 30, 2003.

  1. I'm developing a framset with links in the top frame that
    I want to use to position the page in the bottom frame to
    a certain anchor. Problem is the page in the bottom frame
    is an ASP page.

    Any help?

    Thanks,
    John


    <!-- frameset -->
    </head>
    <frameset rows="120,*" cols="*">
    <frame src="AffilManageTop.htm" name="AdminHdr" noresize>
    <frame src="AOEManageFrame.asp" name="AdminTbls">
    </frameset>
    <noframes>
    <body bgcolor="#FFFFFF" text="#000000">
    </body>
    </noframes>
    </html>

    <!-- top frame -->

    <a href="AdmnTbls.htm#Table1" target="AdminTbls">Link to
    Table 1</a>
    <a href="AdmnTbls.htm#Table2" target="AdminTbls">Link to
    Table 2</a>
    <a href="AdmnTbls.htm#Table3" target="AdminTbls">Link to
    Table 3</a>


    <!-- bottom frame -->

    <A name="table1">
    <table>
    <tr>
    <td> some data</td>
    </tr>
    </table>

    <A name="table2">
    <table>
    <tr>
    <td> some data</td>
    </tr>
    </table>

    <A name="table3">
    <table>
    <tr>
    <td> some data</td>
    </tr>
    </table>
     
    John Beschler, Jul 30, 2003
    #1
    1. Advertising

  2. John Beschler

    Jon Mundsack Guest

    Have you tried...

    <!-- top frame -->
    <a href="AOEManageFrame.asp#Table1" target="AdminTbls">Link to Table 1</a>
    <a href="AOEManageFrame.asp#Table2" target="AdminTbls">Link to Table 2</a>
    <a href="AOEManageFrame.asp#Table3" target="AdminTbls">Link to Table 3</a>


    "John Beschler" <> wrote in message
    news:02f701c356c6$b5a9e6f0$...
    > I'm developing a framset with links in the top frame that
    > I want to use to position the page in the bottom frame to
    > a certain anchor. Problem is the page in the bottom frame
    > is an ASP page.
    >
    > Any help?
    >
    > Thanks,
    > John
    >
    >
    > <!-- frameset -->
    > </head>
    > <frameset rows="120,*" cols="*">
    > <frame src="AffilManageTop.htm" name="AdminHdr" noresize>
    > <frame src="AOEManageFrame.asp" name="AdminTbls">
    > </frameset>
    > <noframes>
    > <body bgcolor="#FFFFFF" text="#000000">
    > </body>
    > </noframes>
    > </html>
    >
    > <!-- top frame -->
    >
    > <a href="AdmnTbls.htm#Table1" target="AdminTbls">Link to
    > Table 1</a>
    > <a href="AdmnTbls.htm#Table2" target="AdminTbls">Link to
    > Table 2</a>
    > <a href="AdmnTbls.htm#Table3" target="AdminTbls">Link to
    > Table 3</a>
    >
    >
    > <!-- bottom frame -->
    >
    > <A name="table1">
    > <table>
    > <tr>
    > <td> some data</td>
    > </tr>
    > </table>
    >
    > <A name="table2">
    > <table>
    > <tr>
    > <td> some data</td>
    > </tr>
    > </table>
    >
    > <A name="table3">
    > <table>
    > <tr>
    > <td> some data</td>
    > </tr>
    > </table>
    >
    >
    >
    >
    >
    >
     
    Jon Mundsack, Jul 30, 2003
    #2
    1. Advertising

  3. Yep. At least I think that's what my code does now.
    However, it does nothing when I click on the link. If the
    bottom frame is HTM it works fine, just not with ASP.

    Thanks,
    John




    >-----Original Message-----
    >Have you tried...
    >
    ><!-- top frame -->
    ><a href="AOEManageFrame.asp#Table1"

    target="AdminTbls">Link to Table 1</a>
    ><a href="AOEManageFrame.asp#Table2"

    target="AdminTbls">Link to Table 2</a>
    ><a href="AOEManageFrame.asp#Table3"

    target="AdminTbls">Link to Table 3</a>
    >
    >
    >"John Beschler" <> wrote in message
    >news:02f701c356c6$b5a9e6f0$...
    >> I'm developing a framset with links in the top frame

    that
    >> I want to use to position the page in the bottom frame

    to
    >> a certain anchor. Problem is the page in the bottom

    frame
    >> is an ASP page.
    >>
    >> Any help?
    >>
    >> Thanks,
    >> John
    >>
    >>
    >> <!-- frameset -->
    >> </head>
    >> <frameset rows="120,*" cols="*">
    >> <frame src="AffilManageTop.htm" name="AdminHdr"

    noresize>
    >> <frame src="AOEManageFrame.asp" name="AdminTbls">
    >> </frameset>
    >> <noframes>
    >> <body bgcolor="#FFFFFF" text="#000000">
    >> </body>
    >> </noframes>
    >> </html>
    >>
    >> <!-- top frame -->
    >>
    >> <a href="AdmnTbls.htm#Table1" target="AdminTbls">Link to
    >> Table 1</a>
    >> <a href="AdmnTbls.htm#Table2" target="AdminTbls">Link to
    >> Table 2</a>
    >> <a href="AdmnTbls.htm#Table3" target="AdminTbls">Link to
    >> Table 3</a>
    >>
    >>
    >> <!-- bottom frame -->
    >>
    >> <A name="table1">
    >> <table>
    >> <tr>
    >> <td> some data</td>
    >> </tr>
    >> </table>
    >>
    >> <A name="table2">
    >> <table>
    >> <tr>
    >> <td> some data</td>
    >> </tr>
    >> </table>
    >>
    >> <A name="table3">
    >> <table>
    >> <tr>
    >> <td> some data</td>
    >> </tr>
    >> </table>
    >>
    >>
    >>
    >>
    >>
    >>

    >
    >
    >.
    >
     
    John Beschler, Jul 30, 2003
    #3
  4. Just think of it like an html page, and asp page is an html page which is
    generated by a asp server.

    If you can get it working in html then you will get it working in asp, try
    it in static html first and see if your code works, if not it won't work
    with ASP generated code. (Make sure your 'a names' are being created
    /there)

    Stu


    "John Beschler" <> wrote in message
    news:02f701c356c6$b5a9e6f0$...
    > I'm developing a framset with links in the top frame that
    > I want to use to position the page in the bottom frame to
    > a certain anchor. Problem is the page in the bottom frame
    > is an ASP page.
    >
    > Any help?
    >
    > Thanks,
    > John
    >
    >
    > <!-- frameset -->
    > </head>
    > <frameset rows="120,*" cols="*">
    > <frame src="AffilManageTop.htm" name="AdminHdr" noresize>
    > <frame src="AOEManageFrame.asp" name="AdminTbls">
    > </frameset>
    > <noframes>
    > <body bgcolor="#FFFFFF" text="#000000">
    > </body>
    > </noframes>
    > </html>
    >
    > <!-- top frame -->
    >
    > <a href="AdmnTbls.htm#Table1" target="AdminTbls">Link to
    > Table 1</a>
    > <a href="AdmnTbls.htm#Table2" target="AdminTbls">Link to
    > Table 2</a>
    > <a href="AdmnTbls.htm#Table3" target="AdminTbls">Link to
    > Table 3</a>
    >
    >
    > <!-- bottom frame -->
    >
    > <A name="table1">
    > <table>
    > <tr>
    > <td> some data</td>
    > </tr>
    > </table>
    >
    > <A name="table2">
    > <table>
    > <tr>
    > <td> some data</td>
    > </tr>
    > </table>
    >
    > <A name="table3">
    > <table>
    > <tr>
    > <td> some data</td>
    > </tr>
    > </table>
    >
    >
    >
    >
    >
    >
     
    Stuart Palmer, Jul 31, 2003
    #4
  5. Stuart,

    Thanks for the post. After I read it, I went back and
    tackled it again. Once I figured out the things I screwed
    up, it worked perfectly.

    You da man!


    >-----Original Message-----
    >Just think of it like an html page, and asp page is an

    html page which is
    >generated by a asp server.
    >
    >If you can get it working in html then you will get it

    working in asp, try
    >it in static html first and see if your code works, if

    not it won't work
    >with ASP generated code. (Make sure your 'a names' are

    being created
    >/there)
    >
    >Stu
    >
    >
    >"John Beschler" <> wrote in message
    >news:02f701c356c6$b5a9e6f0$...
    >> I'm developing a framset with links in the top frame

    that
    >> I want to use to position the page in the bottom frame

    to
    >> a certain anchor. Problem is the page in the bottom

    frame
    >> is an ASP page.
    >>
    >> Any help?
    >>
    >> Thanks,
    >> John
    >>
    >>
    >> <!-- frameset -->
    >> </head>
    >> <frameset rows="120,*" cols="*">
    >> <frame src="AffilManageTop.htm" name="AdminHdr"

    noresize>
    >> <frame src="AOEManageFrame.asp" name="AdminTbls">
    >> </frameset>
    >> <noframes>
    >> <body bgcolor="#FFFFFF" text="#000000">
    >> </body>
    >> </noframes>
    >> </html>
    >>
    >> <!-- top frame -->
    >>
    >> <a href="AdmnTbls.htm#Table1" target="AdminTbls">Link to
    >> Table 1</a>
    >> <a href="AdmnTbls.htm#Table2" target="AdminTbls">Link to
    >> Table 2</a>
    >> <a href="AdmnTbls.htm#Table3" target="AdminTbls">Link to
    >> Table 3</a>
    >>
    >>
    >> <!-- bottom frame -->
    >>
    >> <A name="table1">
    >> <table>
    >> <tr>
    >> <td> some data</td>
    >> </tr>
    >> </table>
    >>
    >> <A name="table2">
    >> <table>
    >> <tr>
    >> <td> some data</td>
    >> </tr>
    >> </table>
    >>
    >> <A name="table3">
    >> <table>
    >> <tr>
    >> <td> some data</td>
    >> </tr>
    >> </table>
    >>
    >>
    >>
    >>
    >>
    >>

    >
    >
    >.
    >
     
    John Beschler, Jul 31, 2003
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris M

    Bookmark Anchors and VB.NET

    Chris M, Oct 24, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    865
  2. Lars Netzel

    What about Anchors (#) and ASP.NET?

    Lars Netzel, Jul 26, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    534
    Justin Beckwith
    Jul 27, 2004
  3. Rowan Malin
    Replies:
    10
    Views:
    1,097
    Foofy (formerly known as Spaghetti)
    May 14, 2004
  4. Mimic

    In page Anchors

    Mimic, Mar 13, 2005, in forum: HTML
    Replies:
    2
    Views:
    479
    Andy Dingley
    Mar 14, 2005
  5. Page Anchors

    , Mar 22, 2006, in forum: HTML
    Replies:
    5
    Views:
    482
Loading...

Share This Page