Bookmark

Discussion in 'ASP .Net' started by Jim McGivney, Jul 10, 2006.

  1. Jim McGivney

    Jim McGivney Guest

    In C# code - I need to reposition a page to a bookmark on the same page
    named "Base".

    I use: Response.Redirect("~/Default.aspx#Base");

    This works.
    Is there a better way ?
    Thanks,
    Jim
     
    Jim McGivney, Jul 10, 2006
    #1
    1. Advertising

  2. Take a look at the DefaultFocus property of the Form object in your page.
    That might be something you can use.

    --
    -Demetri


    "Jim McGivney" wrote:

    > In C# code - I need to reposition a page to a bookmark on the same page
    > named "Base".
    >
    > I use: Response.Redirect("~/Default.aspx#Base");
    >
    > This works.
    > Is there a better way ?
    > Thanks,
    > Jim
    >
    >
    >
     
    =?Utf-8?B?RGVtZXRyaQ==?=, Jul 10, 2006
    #2
    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. Dan M

    Move to bookmark after postback

    Dan M, Jul 2, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    473
    Steve C. Orr, MCSD
    Jul 2, 2003
  2. Chris M

    Bookmark Anchors and VB.NET

    Chris M, Oct 24, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    877
  3. John Carnahan

    Navigating to a bookmark on page?

    John Carnahan, Nov 13, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    563
    John Carnahan
    Nov 13, 2003
  4. Ren
    Replies:
    1
    Views:
    447
    =?Utf-8?B?U2F0aXNo?=
    Apr 20, 2004
  5. Craig Deelsnyder

    Re: Accessing bookmark in a word document

    Craig Deelsnyder, Jun 26, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    432
    Craig Deelsnyder
    Jun 26, 2004
Loading...

Share This Page