title: bootbox with jQuery and Bootstrap with ASP.NET page - how to submit form
body: <p>If I have a .net page with bootstrap min and some other js files on the page, it won't run the js files. However, if I move the &lt; form ...> to the end of the file the bootbox javascript works perfectly.</p>
  
  <p>This won't work until you move the form to the end of the file. How come? I want to use a confirm button to make sure the user actually wants to submit the form but I'm starting with this simple example.</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default6.aspx.cs" Inherits="Default6" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
    &lt;link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css"
      rel="stylesheet"&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class="container"&gt;
      &lt;div class="row"&gt;
        &lt;div class="span12"&gt;
          &lt;h2&gt;
            Bootbox.Js - Creativity Tuts&lt;/h2&gt;
          &lt;button class="btn btn-danger"&gt;
            Alert Box!&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  
    &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"&gt;&lt;/script&gt;
    &lt;script src="js/bootbox.min.js"&gt;&lt;/script&gt;
  
    &lt;script type="text/javascript"&gt;
          $(document).ready(function(){
              $('.btn').on('click', function(){
                  bootbox.prompt("Enter your name", function(res){
                      if(res == null){
                          alert("Prompt cancelled by user.");
                      }else{
                          alert("Hi: "+res);
                      }
                  });    
              });
          });
  
    &lt;/script&gt;
  
    &lt;form id="form1" runat="server"&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>