title: on click not working inside a jqueryui dialog
body: <p>i have a fileupload control and a button inside a jquery dialog but the on-click doesn't fire here is my aspx page:</p>
  
  <pre><code>&lt;div id="pUploadDiv" class="pUploadDiv"&gt;
          &lt;asp:FileUpload runat="server" ID="FileUpload1"  CssClass="FileUpload" /&gt;&lt;br /&gt;
              &lt;asp:FileUpload runat="server" ID="FileUpload2" CssClass="FileUpload" /&gt;&lt;br /&gt;
              &lt;asp:FileUpload runat="server" ID="FileUpload3" CssClass="FileUpload" /&gt;&lt;br /&gt;
              &lt;asp:FileUpload runat="server" ID="FileUpload4" CssClass="FileUpload" /&gt;&lt;br /&gt;
                  &lt;asp:Button runat="server" ID="UploadButton" Text="Upload" OnClick="test" /&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>and here is the code-behind:</p>
  
  <pre><code>try 
      {
          HttpFileCollection hfc = Request.Files;
          for (int i = 0; i &lt; hfc.Count; i++) 
          {
              HttpPostedFile hpf = hfc[i];
              if (hpf.ContentLength &gt; 0) 
              {  
                  hpf.SaveAs(Server.MapPath("imgs") + "\\" + Path.GetFileName(hpf.FileName));
              }
          }
      }
      catch {}
  </code></pre>
  
  <p>and finally my jquery :</p>
  
  <pre><code>$(function () {
  $("#photoUpButton").click(function (pho) {
      $(".pUploadDiv").css("visibility","visible").dialog({
          modal: true,
          height: 300
      }, "draggable");
       return false;
  });
  </code></pre>
  
  <p>});</p>
  
  <p><strong>the on-click works fine outside the jquery dialog but inside it it doesnt work
  using asp.net 4.0 with jquery 1.4.1 vs edition.</strong></p>
  
  <p>thanks</p>