title: UpdatePanel, Placeholder, User Control loaded by Ajax post
body: <p>I can successfully add a user control dynamically using the following code.</p>
  
  <p>ASPX:</p>
  
  <pre><code>&lt;asp:PlaceHolder ID="PlaceHolder1" runat="server" /&gt;
  </code></pre>
  
  <p>Code Behind:</p>
  
  <pre><code>UserControl uc = (UserControl)Page.LoadControl
  ("~/App_Controls/Site/Player/PlayerProfile2.ascx");
  PlaceHolder1.Controls.Add(uc);
  </code></pre>
  
  <p>Now I want to load the user in response to a button click. I have code that submits a form by doing an ajax post.</p>
  
  <pre><code>$(document).ready(function () {
      var options =
      {
          success: showResponse,
          url: "/Default.aspx",
          type: "post"
      };
  
      $('#btnClick').click(function () {
          $("form").ajaxSubmit(options);
          return false;
      });
  });
  
  function showResponse(responseText, statusText, xhr, $form) 
  {
      alert(responseText);
  }
  
  &lt;asp:Button ID="btnClick" ClientIDMode="Static" runat="server" Text="Click" /&gt;
  
  &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;&lt;/asp:ScriptManager&gt;
  &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"&gt;
  &lt;ContentTemplate&gt;
  &lt;asp:PlaceHolder ID="PlaceHolder1" runat="server" /&gt;
  &lt;asp:Literal ID="litText" runat="server" /&gt;
  &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>I am a newbie to C#. When the placeholder or the literal are changed I w</p>