RegisterStartupScript

Discussion in '.NET' started by junielee, Oct 18, 2006.

  1. junielee

    junielee

    Joined:
    Oct 18, 2006
    Messages:
    1
    i have use this RegisterStartupScript("CreateNewUser", strJavaScript) in one of my web form ...
    Code:
    Dim strJavaScript As String = "<script language='javascript'>window.opener.execScript(""__doPostBack('LBDepartment','')"",""JavaScript"");window.close();</script>"
            Page.RegisterStartupScript("CreateNewUser", strJavaScript)
    i realize that if i apply the same method in another web form, it cannot work...
    but now i need to apply this method in many other form to close the child window and refresh my parent page...
    what method should i apply so that i can use the RegisterStartupScript in my other web form??

    thanks...
    junielee, Oct 18, 2006
    #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. Brian W
    Replies:
    1
    Views:
    2,918
    Yan-Hong Huang[MSFT]
    Jul 4, 2003
  2. bruce barker
    Replies:
    1
    Views:
    494
    Dave Stienessen
    Jul 31, 2003
  3. Mark
    Replies:
    1
    Views:
    552
    Natty Gur
    Oct 16, 2003
  4. Earl Teigrob

    Using Page.RegisterStartupScript in Class

    Earl Teigrob, Feb 3, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    5,508
    Earl Teigrob
    Feb 3, 2004
  5. Lukman

    RegisterStartupScript

    Lukman, Feb 18, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    10,526
    gvdamn
    Jun 24, 2010
Loading...

Share This Page