open window & close prior window

Discussion in 'ASP .Net' started by =?Utf-8?B?a2x5bm4=?=, Oct 7, 2005.

  1. I have a server side button which I added an OnClick event to using
    myButton.Attributes.Add("OnClick","myJavascriptFunction()")
    Well, I want myJavascriptFunction to open a new window. But, I want it to
    close the previuos "same" window if it was open and then open the window
    again (so the .net code can get executed). The problem is that the page that
    myButton sits on is refreshing, causing my javascript code to not remember
    the window it had already opened.

    I read something about a hidden frame for pulling this off but haven't
    totally understood how to do this? Any ideas?
     
    =?Utf-8?B?a2x5bm4=?=, Oct 7, 2005
    #1
    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,930
    sateeshranga
    Aug 7, 2008
  2. Dave
    Replies:
    11
    Views:
    5,162
  3. Iñaki Baz Castillo
    Replies:
    7
    Views:
    937
    Iñaki Baz Castillo
    Jan 12, 2010
  4. Shang Wenbin

    close current window using window.close()

    Shang Wenbin, Sep 1, 2005, in forum: Javascript
    Replies:
    10
    Views:
    422
    Gérard Talbot
    Sep 2, 2005
  5. Iulian Ilea
    Replies:
    1
    Views:
    340
    pcx99
    Dec 21, 2006
Loading...

Share This Page