title: Bootstrap Modal not working.(Asp.net, C#)
body: <p>I try to make simple example from this site:
  <a href="http://www.programming-free.com/2013/02/gridviewrow-details-modalpopup-bootstrap.html" rel="nofollow">http://www.programming-free.com/2013/02/gridviewrow-details-modalpopup-bootstrap.html</a>
  (I deleted some fields..only want to see if that's work.)
  When I run that and click on 'Detail'I get only black background like that:
  <a href="http://oi40.tinypic.com/24qlgkg.jpg" rel="nofollow">http://oi40.tinypic.com/24qlgkg.jpg</a></p>
  
  <p>here is my asp code:</p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Shemen.WebForm1" %&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 id="Head1" runat="server"&gt;
      &lt;title&gt;Modal Popup using Bootstrap&lt;/title&gt;
      &lt;link href="css/bootstrap.css" rel="stylesheet" type="text/css" /&gt;
      &lt;script src="http://code.jquery.com/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/bootstrap.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server" /&gt;
      &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
          &lt;ContentTemplate&gt;
              &lt;div&gt;
              &lt;h2 style="text-align:center;"&gt;
                     Display GridView Row Details in Modal Dialog using Twitter Bootstrap&lt;/h2&gt;
              &lt;p style="text-align:center;"&gt;
                     Demo by Priya Darshini - Tutorial @ &lt;a href=""&gt;Programmingfree&lt;/a&gt;
              &lt;/p&gt;                     
                 &lt;asp:GridView ID="GridView1" runat="server" 
                          Width="940px"  HorizontalAlign="Center"
                          OnRowCommand="GridView1_RowCommand" 
                          AutoGenerateColumns="false"   AllowPaging="false"
                          DataKeyNames="RequestNum" 
                          CssClass="table table-hover table-striped"&gt;
                  &lt;Columns&gt;
                     &lt;asp:ButtonField CommandName="detail" 
                           ControlStyle-CssClass="btn btn-info" ButtonType="Button" 
                           Text="Detail" HeaderText="Detailed View"/&gt;
              &lt;asp:BoundField DataField="RequestNum" HeaderText="RequestNum" /&gt;
                 &lt;/Columns&gt;
                 &lt;/asp:GridView&gt;
              &lt;/div&gt;
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
      &lt;asp:UpdateProgress ID="UpdateProgress1" runat="server"&gt;
          &lt;ProgressTemplate&gt;
  
  
          &lt;img src="" alt="Loading.. Please wait!"/&gt;
          &lt;/ProgressTemplate&gt;
      &lt;/asp:UpdateProgress&gt;
      &lt;div id="currentdetail" class="modal hide fade" 
                 tabindex=-1 role="dialog" aria-labelledby="myModalLabel" 
                 aria-hidden="true"&gt;
          &lt;div class="modal-header"&gt;
              &lt;button type="button" class="close" data-dismiss="modal" 
                    aria-hidden="true"&gt;×&lt;/button&gt;
              &lt;h3 id="myModalLabel"&gt;Detailed View&lt;/h3&gt;
         &lt;/div&gt;
     &lt;div class="modal-body"&gt;
          &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
              &lt;ContentTemplate&gt;
                      &lt;asp:DetailsView ID="DetailsView1" runat="server" 
                                CssClass="table table-bordered table-hover" 
                                 BackColor="White" ForeColor="Black"
                                 FieldHeaderStyle-Wrap="false" 
                                 FieldHeaderStyle-Font-Bold="true"  
                                 FieldHeaderStyle-BackColor="LavenderBlush" 
                                 FieldHeaderStyle-ForeColor="Black"
                                 BorderStyle="Groove" AutoGenerateRows="False"&gt;
                          &lt;Fields&gt;
                   &lt;asp:BoundField DataField="RequestNum" HeaderText="RequestNum" /&gt;
  
                         &lt;/Fields&gt;
                    &lt;/asp:DetailsView&gt;
             &lt;/ContentTemplate&gt;
             &lt;Triggers&gt;
                 &lt;asp:AsyncPostBackTrigger ControlID="GridView1"  EventName="RowCommand" /&gt;  
             &lt;/Triggers&gt;
             &lt;/asp:UpdatePanel&gt;
                  &lt;div class="modal-footer"&gt;
                      &lt;button class="btn btn-info" data-dismiss="modal" 
                              aria-hidden="true"&gt;Close&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
      &lt;/div&gt;
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and this is the C# code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  
  namespace Shemen
  {
  
  
      public partial class WebForm1 : System.Web.UI.Page
      {
  
  
          ShemenDataContext sdb = SQLConnection.GetDataContextInstance();
  
          public List&lt;Request&gt; list;
  
          protected void Page_Load(object sender, EventArgs e)
          {
              sdb = SQLConnection.GetDataContextInstance();
  
              list = sdb.Requests.ToList();
              GridView1.DataSource = list;
              GridView1.DataBind();
          }
  
  
  
  
  
          protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
          {
              if (e.CommandName.Equals("detail"))
              {
  
                  Request r = sdb.Requests.First();
                  var list1 = new List&lt;Request&gt; { r };
                  DetailsView1.DataSource = list1;
                  DetailsView1.DataBind();
                  System.Text.StringBuilder sb = new System.Text.StringBuilder();
                  sb.Append(@"&lt;script type='text/javascript'&gt;");
                  sb.Append("$('#currentdetail').modal('show');");
                  sb.Append(@"&lt;/script&gt;");
                  ScriptManager.RegisterClientScriptBlock(this, this.GetType(),
                             "detailModal", sb.ToString(), false);
  
              }
          }
      }
  
  
  }
  </code></pre>
  
  <p>what is wrong? 
  Thanks!</p>