title: Issue with Update Command in gridview
body: <p>I have a gridview with some data from my DataBase and each line monitors something (in the real world). One of the columns tells me if monitoring is enabled or disabled (0 or 1). I have added a column (Templatefield) on the gridview with a LinkButton. This TemplateField is declared as follows :</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Action"&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:LinkButton ID="LinkButton1" class="btn" runat="server" CausesValidation="false" 
              CommandName="Update" Text='&lt;%# Eval("Disable").ToString() == "1" ? "Enable" : "Disable" %&gt;'&gt;&lt;/asp:LinkButton&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>As you can see the property Text of the button is "Enable" (if the monitoring is currently disabled) or "Disable" (if the monitoring is currently enabled). That works fine. </p>
  
  <p>The gridview is linked to an ObjectDataSource and the Linkbutton is linked to the command Update of said DataSource. The Update command of the ObjectDataSource calls a method from one of my DLLs and I need to pass the value (0 or 1) that will be written in the DataBase.</p>
  
  <p>How shall I proceed in the Updating Event so that when I click this button it either Enables or Disables (sets the field to 0 or 1) in the DataBase depending on its current status.</p>
  
  <p>My issue comes from the Updating Event on the ObjectDataSource. I can't seem to pass any parameters </p>
  
  <pre><code>protected void ods_Updating(object sender, ObjectDataSourceMethodEventArgs e)
  {
      //I would like to accomplish something like
      e.InputParameters["value"] = isItEnabled ? 0 : 1;
  }
  </code></pre>
  
  <p>Any ideas on how to proceed?</p>
  
  <p>Edit 1 : My ods markup </p>
  
  <pre><code>&lt;asp:ObjectDataSource ID="odsHistoriqueSurveillance" runat="server" 
      OldValuesParameterFormatString="original_{0}" 
      onselecting="odsHistoriqueSurveillance_Selecting" SelectMethod="getHistorique" 
      TypeName="WebOrderProcessingBLL.SRVCheckValueBLLWrapper" 
      onUpdating="ods_Updating"
      UpdateMethod="EnableOrDisableSurveillanceFromHistorique"&gt;
      &lt;SelectParameters&gt;
          &lt;asp:Parameter Name="ParamName" Type="String" /&gt;
      &lt;/SelectParameters&gt;
      &lt;UpdateParameters&gt;
          &lt;asp:Parameter Name="original_id" Type="Int32" /&gt;
          &lt;asp:Parameter Name="value" Type="Byte" /&gt;
      &lt;/UpdateParameters&gt;
  &lt;/asp:ObjectDataSource&gt;
  </code></pre>