close window

Discussion in 'ASP .Net' started by wilco, Aug 3, 2003.

  1. wilco

    wilco Guest

    Hello,

    how can you close a pop up window with vb in asp.net?



    thanks
     
    wilco, Aug 3, 2003
    #1
    1. Advertising

  2. wilco

    Natty Gur Guest

    Hi,

    Use Page.RegisterStartupScript to embed client side java script
    window.close(); you wont see the method with intellisense but it exist.

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Natty Gur, Aug 3, 2003
    #2
    1. Advertising

  3. wilco

    Saravana Guest

    Saravana, Aug 4, 2003
    #3
  4. wilco

    PJ Guest

    Response.Clear()
    Response.Write("<html><body onload=""window.close()""></body></html>")
    Response.End()

    "wilco" <> wrote in message
    news:bgj18e$9h1$...
    > Hello,
    >
    > how can you close a pop up window with vb in asp.net?
    >
    >
    >
    > thanks
    >
    >
     
    PJ, Aug 11, 2003
    #4
    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:
    6
    Views:
    8,875
    sateeshranga
    Aug 7, 2008
  2. Iñaki Baz Castillo
    Replies:
    7
    Views:
    893
    Iñaki Baz Castillo
    Jan 12, 2010
  3. Walter Beierdonck

    Self.close() window without the dialog close?Yes/NO

    Walter Beierdonck, Apr 29, 2004, in forum: Javascript
    Replies:
    1
    Views:
    357
    Grant Wagner
    Apr 30, 2004
  4. Replies:
    3
    Views:
    423
    Chung Leong
    Jan 16, 2005
  5. Shang Wenbin

    close current window using window.close()

    Shang Wenbin, Sep 1, 2005, in forum: Javascript
    Replies:
    10
    Views:
    394
    Gérard Talbot
    Sep 2, 2005
Loading...

Share This Page