title: Update Panel and triggers from a repeater control
body: <p>Hi I found code similiar to the following online. It's seems really great for getting a button buried in a repeater control to trigger a full cycle back to the server.</p>
  
  <pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt; 
          &lt;/asp:ScriptManager&gt; 
  
          &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt; 
              &lt;ContentTemplate&gt; 
                  &lt;%=DateTime.Now.ToString() %&gt; 
              &lt;/ContentTemplate&gt; 
              &lt;Triggers&gt; 
                  &lt;asp:PostBackTrigger ControlID="HiddenButton" /&gt; 
              &lt;/Triggers&gt; 
          &lt;/asp:UpdatePanel&gt; 
  
          &lt;!--Make a hidden button to treat as the postback trigger--&gt; 
          &lt;asp:Button ID="HiddenButton" runat="server" Style="display: none" Text="HiddenButton" /&gt; 
  
  
          &lt;asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"&gt; 
              &lt;ItemTemplate&gt; 
                   &lt;!--when cick the button1, it will fire the hiddenButton--&gt; 
                  &lt;asp:Button ID="Button1" Text="Trigger" CommandArgument='&lt;%# Eval("Id") %&gt;' OnClientClick="$get('HiddenButton').click();return false;" 
                      runat="server" /&gt; 
              &lt;/ItemTemplate&gt; 
          &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>It uses a hiddenButton to achieve this by hooking the click event of the original button to this one. However my addition to this was the setting of the CommandArgument for the button. I would also need it to be set for the HiddenButton.</p>
  
  <p>Does anyone know a way of going about this?</p>