Call Java script methods from c# code behind in SharePoint application page, SharePoint page, user Control and ASP:Updatepanel (Web part)
SharePoint Page:
ClientScript.RegisterStartupScript(this.GetType(), "js", "getNodesName();", true);
Page.ClientScript.RegisterStartupScript(this.GetType(), "js", "<script
type= 'text/javascript'> getNodesName();</script>", false);
ASP:Updatepanel:
ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "MyAction", "CallCodeBhndMethod();", true);
No comments:
Post a Comment