title: UpdatePanel causing full postback. Trying to do a partial postback
body: <p>I am working on a page that is using a gridview to display data. I have some dynamically created textboxes inside an ItemTemplate which contains several textboxes per row. Now I also have an update panel that is using ajax and should only render once my link button is clicked. The datalist is bound in my code behind after the  I would like this to occur without causing a full postback. However, right now when I click the link button it causes a full post-back which eliminates my dynamically created controls. </p>
  
  <p>I feel I am very close to a solution. I need one of these to happen (option 1 seems more useful):
  Do not cause a postback when the linkbutton is clicked, but still render my full datalist in the update panel</p>
  
  <p>or</p>
  
  <p>my dynamically created controls are not removed during post back.</p>
  
  <p>Here is my code:</p>
  
  <pre><code> &lt;ItemTemplate&gt;
          [&amp;nbsp;&lt;asp:LinkButton ID="SelectCommand" CommandName="Select"  runat="server" Text="+" CssClass="sunocoBold"/&gt;&amp;nbsp;]
          &lt;%-- start sub panel--%&gt;
          &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt; 
          &lt;ContentTemplate&gt;
  
              &lt;asp:DataList ID="DataList1" runat="server" RepeatDirection="Vertical" 
               OnItemCommand="DataList_OnItemCommand"&gt; 
              &lt;ItemTemplate&gt;
              &lt;asp:LinkButton ID="Select" CommandName="SelectCommand" CommandArgument='&lt;%#Eval("ship_to_num")%&gt;'  runat="server" Text='&lt;%#Eval("ship_to_num")%&gt;'  /&gt;
               &lt;/ItemTemplate&gt; 
              &lt;/asp:DataList&gt; 
  
          &lt;/ContentTemplate&gt;
          &lt;/asp:UpdatePanel&gt; 
          &lt;%-- end sub panel--%&gt;
      &lt;/ItemTemplate&gt;
  
  
  
    &lt;asp:TemplateField HeaderText="Site Owner"  ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Top"&gt; 
      &lt;ItemTemplate&gt;
        &lt;asp:Panel ID="pnlNames" runat="server"&gt;
          &lt;/asp:Panel&gt;
        &lt;%-- &lt;asp:Literal ID="NameList" runat="server" /&gt; --%&gt;
      &lt;/ItemTemplate&gt; 
      &lt;/asp:TemplateField&gt;
  </code></pre>