RegisterStartupScript

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

  1. junielee

    junielee

    Joined:
    Oct 18, 2006
    Messages:
    1
    Likes Received:
    0
    i have use this RegisterStartupScript("CreateNewUser", strJavaScript) in one of my web form ...
    Code (Text):
    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. Advertisements

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:
    3,155
    Yan-Hong Huang[MSFT]
    Jul 4, 2003
  2. bruce barker
    Replies:
    1
    Views:
    647
    Dave Stienessen
    Jul 31, 2003
  3. Mark
    Replies:
    1
    Views:
    666
    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,778
    Earl Teigrob
    Feb 3, 2004
  5. Lukman

    RegisterStartupScript

    Lukman, Feb 18, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    10,775
    gvdamn
    Jun 24, 2010
  6. Bill Jones

    RegisterStartupScript Question.

    Bill Jones, Apr 7, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    2,460
    Scott
    Apr 8, 2004
  7. George Durzi

    RegisterStartupScript / Escape Character

    George Durzi, Jul 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    771
    George Durzi
    Jul 2, 2004
  8. =?Utf-8?B?TmVvIFRoZSBPbmU=?=

    RegisterStartupScript is declared 'obsolete', then what is...

    =?Utf-8?B?TmVvIFRoZSBPbmU=?=, Aug 18, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,534
Loading...