title: How to call bootbox.alert() from javascript after button click from C# file
body: <p>I want to call "bootstrap.alert" method which i have written in a JavaScript function myfunction().</p>
  
  <p>Here is the aspx code:-</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="temp1.aspx.cs"    Inherits="temp1" %&gt;
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;link href="css/bootstrap.css" rel="stylesheet" /&gt;
  &lt;link href="css/font-awesome.min.css" rel="stylesheet" /&gt;
  
   &lt;script type="text/javascript"&gt;
  
       function myfunction() {
           bootbox.alert("Hello world!", function () {
           });
       }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;asp:Button runat="server" Text="Test" ID="btnTest"     OnClick="btnTest_Click"/&gt;
  &lt;/form&gt;
  &lt;!-- JS dependencies --&gt;
  &lt;script     src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  
  
  &lt;!-- bootbox code --&gt;
  
  
  &lt;script src="Scripts/bootbox.js"&gt;&lt;/script&gt;
  &lt;script src="Scripts/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script src="Scripts/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;    &lt;/script&gt;
  
  
  
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p>Here is my Csharp code:-</p>
  
  <pre><code>public partial class temp1 : System.Web.UI.Page
  {
  protected void Page_Load(object sender, EventArgs e)
  {
  
  }
  protected void btnTest_Click(object sender, EventArgs e)
  {
     //What should i write here to call the javascript function "myfunction()" and that bootbox.alert() is executed.
  }
  }
  </code></pre>
  
  <p>I want to show bootbox alert box upon clicking the button. Please help me to write the code in the button click event. </p>