Saturday, April 15, 2017

Call JavaScript function from code behind

Example 1

Page.ClientScript.RegisterStartupScript(this.GetType(),"CallMyFunction","MyFunction()",true);

Example 2

ClientScript.RegisterStartupScript(GetType(),"hwa","alert('Hello World...');",true);

No comments:

Post a Comment