Can I link to a section of text in an aspx page?

Discussion in 'ASP .Net' started by =?Utf-8?B?QW5keQ==?=, Jul 3, 2006.

  1. If the page was straight html I could do the following...

    <A id="apples"> here is some text about apples...</a>
    within the page, then creating a link to the section from another page would
    look something like...

    <a href="pageoffruit.html#apples">go to apples</a>

    But this doesnt seem to work in an aspx page, focus is always at the top of
    the page. Are there any other ways I can link to a section in another aspx
    page?

    Many thanks
    =?Utf-8?B?QW5keQ==?=, Jul 3, 2006
    #1
    1. Advertising

  2. instead
    <a id="apple">

    use

    <a name="apple">

    and it should work, cause it works fine with me ;-)

    --

    Bruno Alexandre
    (a Portuguese in Københanv, Danmark)


    "Andy" <> escreveu na mensagem
    news:...
    > If the page was straight html I could do the following...
    >
    > <A id="apples"> here is some text about apples...</a>
    > within the page, then creating a link to the section from another page
    > would
    > look something like...
    >
    > <a href="pageoffruit.html#apples">go to apples</a>
    >
    > But this doesnt seem to work in an aspx page, focus is always at the top
    > of
    > the page. Are there any other ways I can link to a section in another aspx
    > page?
    >
    > Many thanks
    Bruno Alexandre, Jul 3, 2006
    #2
    1. Advertising

  3. Bruno - that's the badger!

    Many thanks for your help.
    Regards,
    Andy

    "Bruno Alexandre" wrote:

    > instead
    > <a id="apple">
    >
    > use
    >
    > <a name="apple">
    >
    > and it should work, cause it works fine with me ;-)
    >
    > --
    >
    > Bruno Alexandre
    > (a Portuguese in Københanv, Danmark)
    >
    >
    > "Andy" <> escreveu na mensagem
    > news:...
    > > If the page was straight html I could do the following...
    > >
    > > <A id="apples"> here is some text about apples...</a>
    > > within the page, then creating a link to the section from another page
    > > would
    > > look something like...
    > >
    > > <a href="pageoffruit.html#apples">go to apples</a>
    > >
    > > But this doesnt seem to work in an aspx page, focus is always at the top
    > > of
    > > the page. Are there any other ways I can link to a section in another aspx
    > > page?
    > >
    > > Many thanks

    >
    >
    >
    =?Utf-8?B?QW5keQ==?=, Jul 3, 2006
    #3
    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. Kevin Spencer

    Re: Link Link Link DANGER WILL ROBINSON!!!

    Kevin Spencer, May 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    818
    Kevin Spencer
    May 17, 2005
  2. LinNan
    Replies:
    2
    Views:
    329
    LinNan
    Sep 11, 2008
  3. De kessé

    ASPX load a page in the boy section

    De kessé, Feb 3, 2006, in forum: ASP General
    Replies:
    2
    Views:
    113
    De kessé
    Feb 3, 2006
  4. De kessé

    ASPX load a page in the main section

    De kessé, Feb 3, 2006, in forum: ASP General
    Replies:
    1
    Views:
    109
    Tim Slattery
    Feb 3, 2006
  5. kampy
    Replies:
    9
    Views:
    330
    Steven D'Aprano
    Oct 19, 2012
Loading...

Share This Page