ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "editModal();", true);
this command works from another methods in the C# class.
Answer posted by Dan Letecky [DayPilot] 12 years ago.
It depends on what you actually want to do (and it looks like #1 is what you are looking for):
1. If you only want to call a client-side method, use EventClickHandling="JavaScript" and specify your javascript code using EventClickJavaScript, e.g. EventClickJavaScript="editModal(e)". See also:
2. If you want to execute a server-side method first, you need to use EventClickHandling="CallBack" and send custom data using Update() and handle it using AfterRender event handler: