title: asp.net display gridview in modal bootstrap
body: <p>Bootstrap modal won't show gridview, i have no idea why? 
  it won't firing the gridview did i need to put update panel for this to do the update? i have try through some solution but seen didn't work well.</p>
  
  <p>Here my code aspx:</p>
  
  <pre><code>     &lt;div id="Group" class="modal fade" role="dialog"&gt;
                        &lt;div class="modal-dialog"&gt;
                          &lt;div class="modal-content"&gt;
                            &lt;div class="modal-header"&gt;
                              &lt;button type="button" class="close" data-dismiss="modal"  &gt;&lt;/button&gt;
                              &lt;h4 class="modal-title"&gt;&lt;/h4&gt;
                            &lt;/div&gt;
                             &lt;div class="modal-body"&gt;
       &lt;asp:GridView runat="server" ID="grdiview" AutoGenerateColumns="false"&gt;
                                &lt;Columns&gt;
                                    &lt;asp:TemplateField&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:CheckBox ID="gvMODALCHECK" runat="server" /&gt;
                                        &lt;/ItemTemplate&gt;
                                    &lt;/asp:TemplateField&gt;
                        &lt;asp:BoundField HeaderText="text1" DataField="GROUP" /&gt;
                        &lt;asp:BoundField HeaderText="text2" DataField="NME" /&gt;
                                &lt;/Columns&gt;
                                &lt;/asp:GridView&gt;
                         &lt; /div&gt;
                  &lt; /div&gt;
            &lt; /div&gt;
      &lt; /div&gt;
   &lt; /div&gt;
  </code></pre>
  
  <p>code behind for gridview check through here has no problem:</p>
  
  <pre><code>protected void gridview_GETGROUP()
          {
              try
              {
                  string sqlCONSTR = ConfigurationManager.ConnectionStrings["conn"].ConnectionString;
                  String sqlQUERY = "SELECT GROUP,NME FROM GROUP_MEMBER";
                  SqlConnection sqlCONN = new SqlConnection(sqlCONSTR);
                  SqlCommand sqlCMD = new SqlCommand(sqlQUERY, sqlCONN);
                  SqlDataAdapter sqlADAP = new SqlDataAdapter(sqlCMD);
                  DataTable dt = new DataTable();
                  sqlADAP.Fill(dt);
                  sqlCONN.Open();
                  sqlCONN.Close();
                  gridview.DataSource = dt;
                  gridview.DataBind();
  
              }
              catch (Exception ex)
              {
                  ClientScript.RegisterStartupScript(this.GetType(), "alert", Please Contact IT STAFF!!!')", true);
              }
          }
  </code></pre>