title: Cannot click on an asp.net button within a jquery dialog
body: <p>I already did search online, and try a few solutions provided, but none of them are working for me. </p>
  
  <p>I have a button within a div. I am displaying the div within a jquery dialog. The button click doesnt work within the jquery dialog.</p>
  
  <p>I have my code below : </p>
  
  <p>aspx</p>
  
  <pre><code>    &lt;div id='one'&gt;
   &lt;asp:LinkButton ID="ConfigureAlerts" OnClick="btnConfigureAlerts_Click" runat="server"&gt;Configure Alerts&lt;/asp:LinkButton&gt;
  &lt;/div&gt;
  &lt;div id="ViewModalPopupDiv2"&gt;
          &lt;asp:UpdatePanel ID="UpdatePanel3" runat="server"&gt;
              &lt;ContentTemplate&gt;
              &lt;asp:Panel ID="Panel2" runat="server" HorizontalAlign="left" ScrollBars="Auto"&gt;
              &lt;asp:Button ID="btnGetLogs" runat="server" Text="SendAlerts" OnClick="btnSendAlertEmail_Click"/&gt;
              &lt;/asp:Panel&gt;
              &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>jquery </p>
  
  <pre><code>function ViewModelPopup2() {
              $("#ViewModalPopupDiv2").dialog({
                  scrollable: true,
                  width: 800,
                  modal: true
              });
          }
  </code></pre>
  
  <p>aspx.cs</p>
  
  <pre><code>protected void btnSendAlertEmail_Click(object sender, EventArgs e)
          {
  
              // Code to send email
  
          }
  
  protected void btnConfigureAlerts_Click(object sender, EventArgs e)
          {
  
          ScriptManager.RegisterStartupScript
                         (this, this.GetType(), "callScriptFunction", "ViewModelPopup2();", true);
          }
      }
  </code></pre>
  
  <p>Please let me know what I need to do , to trigger the server control events . </p>