Click here to Skip to main content
15,895,370 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to call a javascript function from c#?
Posted

1 solution

Try
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "Function", "JSFunction();", true);
 
Share this answer
 
v3
Comments
Member 10276220 1-Feb-14 5:44am    
what is this JSFunction?
JoCodes 1-Feb-14 5:49am    
The name of the Javascript Method, replace JSFunction() with your Javascript method name
Member 10276220 1-Feb-14 5:52am    
ok...& wat about for Function?
JoCodes 1-Feb-14 5:58am    
Thats for key which you can give any name accordingly.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900