in this article we learn how can we call javascript funtion from code behind in asp.net c#.

its too simple just add:


Page.ClientScript.RegisterStartupScript(this.GetType(), "JSFunction", "javascript_function_name();", true);