title: ASP.net: how Can i display a gridview inside ajax modalpopupextender
body: <p>I do not know how to make it work ...... i am using ASP.net with C# and i am designing a search user control </p>
  
  <pre><code>&lt;asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"&gt;
  &lt;/asp:ToolkitScriptManager&gt;
  &lt;asp:UpdatePanel runat="server"&gt;
    &lt;ContentTemplate&gt;
      &lt;asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
      TargetControlID="btnFind" CancelControlID="btnCancel" PopupControlID="Panel" 
      PopupDragHandleControlID="Panel" BackgroundCssClass="modalBackground" &lt;/asp:ModalPopupExtender&gt;
      &lt;asp:Panel ID="Panel" runat="server" CssClass="ModalWindow"&gt;
  
  
      &lt;asp:GridView ID="grdInfo" runat="server" &gt;
          &lt;Columns&gt;
              &lt;asp:TemplateField HeaderText="Select"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:Button ID="Button1" runat="server" CommandName="Select" Text="Button" /&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
          &lt;/Columns&gt;
      &lt;/asp:GridView&gt;
  
     &lt;br /&gt;
         &lt;asp:Button ID="btnCancel" runat="server" Text="Cancel" /&gt;
  
      &lt;/asp:Panel&gt;
    &lt;/ContentTemplate&gt;
   &lt;/asp:UpdatePanel&gt;
  </code></pre>