public void calculateCoordinates() { ClientScriptManager cs = Page.ClientScript; Type cstype = this.GetType(); String csName = "Calculate"; if (!cs.IsStartupScriptRegistered(cstype, csName)) { String jsFunction = "calculateGeoCoordinates();"; cs.RegisterStartupScript(cstype, csName, jsFunction, true); } }
RegisterClientScriptBlock
RegisterStartUpScript
using AjaxControlToolkit; Page.ClientScript.RegisterStartupScript(this.GetType(), "ShowStatus", "javascript:alert('Write your javascript code here');", true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)