<script type="text/javascript" > function abc(obj) { BootstrapDialog.confirm(obj, function (result) { if (result) { } else { return false; } }); } </script>
protected void Button1_Click(object sender, EventArgs e) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), "Warning","abc('test')",true); }
// if you are using Ajax update panel use ScriptManager.RegisterClientScriptBlock ScriptManager.RegisterClientScriptBlock(this,this.GetType(), "Warning", "abc('test')", true); // if not Ajax Update panel this.Page.ClientScript.RegisterStartupScript(this.GetType(), "Warning", "abc('test')", true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)