question about my custom control

Discussion in 'ASP .Net Building Controls' started by rodchar, Nov 29, 2004.

  1. rodchar

    rodchar Guest

    hey all,

    i was wondering, i have a custom control that inherits from the image
    button. i have 2 .aspx pages.

    all the custom control does is open a new window for help info.

    well, on 1 .aspx page the new window appears fine and in focus. however, on
    the second window the new window opens but the original window regains focus
    (as a result pushing the help window in the back.).

    the page load looks very similar so i can't figure out the different results.

    thanks,
    rodchar
     
    rodchar, Nov 29, 2004
    #1
    1. Advertising

  2. Just include the javascript in the second aspx page to bring the focus of the
    second window:
    <script>
    window.focus();
    </script>

    "rodchar" wrote:

    > hey all,
    >
    > i was wondering, i have a custom control that inherits from the image
    > button. i have 2 .aspx pages.
    >
    > all the custom control does is open a new window for help info.
    >
    > well, on 1 .aspx page the new window appears fine and in focus. however, on
    > the second window the new window opens but the original window regains focus
    > (as a result pushing the help window in the back.).
    >
    > the page load looks very similar so i can't figure out the different results.
    >
    > thanks,
    > rodchar
     
    Prasanna Pattam, Nov 29, 2004
    #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. Replies:
    0
    Views:
    725
  2. Jonah Olsson
    Replies:
    1
    Views:
    585
    Scott Allen
    Apr 5, 2005
  3. J R M
    Replies:
    2
    Views:
    438
    Charlie@CBFC
    Jun 1, 2006
  4. Matt Sokol
    Replies:
    2
    Views:
    398
    Theo Tillotson
    Aug 7, 2003
  5. Jonah Olsson
    Replies:
    2
    Views:
    208
    Jonah Olsson
    Apr 5, 2005
Loading...

Share This Page