How to use RegisterStartupScript one after the other?

1

Is it possible to use ScriptManager.RegisterStartupScript one followed by the other?

I need to use one as tabChange(); and another to display the modal, but in case it only runs the first.

Code:

   ScriptManager.RegisterStartupScript(Page, Me.GetType, "OK", "tabChange();tabChange();", True)

    Dim gBll As New Geral_BLL
    gBll.atribuiMensagemModal(Me.Master, dcResultado)
    ScriptManager.RegisterStartupScript(Page, Me.GetType, "OK", "openModal()", True)
    gBll = Nothing 
    
asked by anonymous 23.12.2016 / 14:50

1 answer

2

See if that does not solve it.

 Dim gBll As New Geral_BLL           
 gBll.atribuiMensagemModal(Me.Master, dcResultado)            
 ScriptManager.RegisterStartupScript(Page, Me.GetType, "OK", "tabChange();tabChange();openModal()", True)
gBll = Nothing
    
23.12.2016 / 18:29