How to use Registerstartupscript one after the other?

Asked

Viewed 89 times

1

It is possible to use ScriptManager.RegisterStartupScript one after the other?

'Cause I need to use one like tabChange(); and another to display the modal, but in case it only executes 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 

1 answer

2


See if you can’t 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
  • 1

    Thank you very much, you did!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.