jeudi 14 juillet 2016

How to call multiple jquery function from .cs file?


I have 2 JQuery functions which I want to call from PageLoad event. The current implementation is as under

ScriptManager.RegisterStartupScript(this.Page, this.GetType(), 
"script", "Function1();", true);

ScriptManager.RegisterStartupScript(this.Page, this.GetType(), 
"script", "Function2();", true);

The problem is that, the first function is invoked i.e. Function1 and not Function2.

If I change the order of invocation, then Function2 and not Function1 is called.

How to execute both the functions ?

Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire