title: CSS Styles not reapplied to jQuery dialog after postback
body: <p>I have a stock jQuery dialog div with a data entry usercontrol wrapped in a updatepanel. It looks great until the first postback. After which there are no styles applied at all. (controls retain their values and events continue to operate as expected.) After closing the dialog subsequent .dialog("open") calls have no styles applied if there had been a postback. </p>
  
  <pre><code>    $(function () {
          var dlg = jQuery("#EventMod").dialog({
              autoOpen: false
              , modal: true
          });
          dlg.parent().appendTo(jQuery("form:first"));  
  
          $(".NewEvent").click(function () {
              $("#EventMod").dialog("open");
              return false;
          });
      });
  </code></pre>
  
  <p>The dialog div is here:</p>
  
  <pre><code>&lt;div id="EventMod" title="Event Modify" class="ui-helper-hidden"&gt;
      &lt;asp:UpdatePanel ID="updNewEvent" runat="server"&gt;
          &lt;ContentTemplate&gt;
              &lt;uc1:EventEdit ID="NewEvent" runat="server" /&gt;
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In the usercontrol Classes are NOT assigned dynamically they appear like this:</p>
  
  <pre><code>    &lt;table class="NewEvent" &gt;
          &lt;tr&gt;
              &lt;td align="center"&gt;
                  &lt;table class="Event"&gt;
                      &lt;tr class="Title"&gt;
                          &lt;th width="55"&gt;
                              &lt;strong&gt;Event #&lt;/strong&gt;
                          &lt;/th&gt;
      ... snip ...
  </code></pre>
  
  <p>I have the stylesheet linked in the parent page. I tried adding it to the usercontrol as well with no visible results.  </p>