Results 1 to 2 of 2

Thread: [RESOLVED] Open New Window

  1. #1

    Thread Starter
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    Resolved [RESOLVED] Open New Window

    I want to be able to open a new browser window and load an aspx page when the user clicks on a button, can this be done in asp.net if so how, or is javascript required to do this
    Last edited by Strider; Feb 3rd, 2005 at 10:30 AM.

  2. #2
    Member
    Join Date
    Nov 2004
    Posts
    62

    Re: Open New Window

    You can do this using javascript
    in the page_load of the parent aspx add the following line

    Code:
    btnSubmit.Attributes.Add("onClick", "fnStartNewWin()");
    In the fnStartNewWin routine you can then add the following line

    Code:
     window.open(path to the new aspx)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width