title: ItemUpdating does not call on DetailsView using EntityDataSource
body: <p>I have a details view bound to an entity data source and am trying to use it to update some things. But the ItemUpdating event never fires when I press the Update button.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;asp:DetailsView ID="DetailsView1" DataKeyNames="Id" runat="server" AutoGenerateRows="False" OnDataBound="DetailsView_DataBound" 
      DataSourceID="eds2"  BorderWidth="0" OnModeChanging="OnModeChanging" AutoGenerateEditButton="true" OnItemUpdated="DetailsView_OnItemUpdated"  OnItemUpdating="DetailsView_OnItemUpdating"
      EmptyDataText="N/A" 
      CellPadding="0" CellSpacing="7" GridLines="None" CssClass="Center"&gt;
      &lt;Fields&gt;
          &lt;asp:BoundField DataField="Name" HeaderText="Name: "  /&gt;
          &lt;asp:BoundField DataField="AccessCode" HeaderText="Access Code: "  /&gt;
          &lt;asp:BoundField DataField="Password" HeaderText="Password: "  /&gt;
          &lt;asp:BoundField DataField="MaxVoters" HeaderText="Max Voters: "  /&gt;                        
          &lt;asp:BoundField DataField="Created" HeaderText="Created: " ReadOnly="true"  /&gt;
          &lt;asp:BoundField DataField="Updated" HeaderText="Updated: " ReadOnly="true"  /&gt;
      &lt;/Fields&gt;
  &lt;/asp:DetailsView&gt;
  </code></pre>
  
  <p>And the EntityDataSource:</p>
  
  <pre><code>&lt;asp:EntityDataSource ID="eds2" runat="server" ConnectionString="name=BallotOnlineEntities" 
      DefaultContainerName="EntitiesOne" EntitySetName="Accounts"  OnInserting="eds1_Inserting" OnUpdating="eds1_Updating" OnDeleting="eds1_Deleting"
      EnableDelete="True" EnableFlattening="False" EnableInsert="True" 
      EnableUpdate="True"&gt;
      &lt;UpdateParameters&gt;
          &lt;asp:Parameter Name="AccessCode" Type="String" /&gt;
      &lt;/UpdateParameters&gt;
  &lt;/asp:EntityDataSource&gt;
  </code></pre>
  
  <p>During the OnModeChange I set the where property of the Datasource so it queries for the right item, this was the only way I could get it to work, but I dont think that is a problem.</p>
  
  <pre><code>protected void OnModeChanging(object sender, DetailsViewModeEventArgs e)
  {
      eds2.Where = string.Format("it.AccessCode = '{0}'",accountIDPlaceholder.Text );
  
      DetailsView1.DataBind();
  }
  
  protected void DetailsView_OnItemUpdating(object sender, DetailsViewUpdateEventArgs e)
  {
      //Do Stuff 
  }
  </code></pre>
  
  <p>Any ideas why my event is not firing? The reason I want it to fire is that it does not seem to update the entities at all when I click update.</p>
  
  <p>Thanks, </p>
  
  <p>Ty Rozak</p>