#region Ajax perform JS script /// <the Summary> /// Ajax perform JS script /// </ the Summary> /// <param name = "Ctrl"> Controls call </ param> /// < param name = "script"> execution of the JS script </ param> public static void AjaxScript (Ctrl Control, String script) { System.Web.UI.ScriptManager.RegisterStartupScript (Ctrl, ctrl.GetType (), "" , script, to true ); } #endregion Called: AjaxScript ( the this .page,"tt();" ) // tt () method is js foreground name; this.Page common template page with the page directly on ok Page