title: Pass value from ObjectDataSource object level to ASP .NET Control
body: <p>I'm working with ObjectDataSource and FormView control.</p>
  
  <p>In ObjectDataSource I have a type specified, and a method that performs Insert operation. However, once Insert is done, I would like to redirect the user to other page, and I need ID of newly created/persisted object. </p>
  
  <p>So in FormView:</p>
  
  <pre><code>OnItemInserted="OnFormItemInserted"
  </code></pre>
  
  <p>handler I need to access that ID. But how to pass that id gracefully from ObjectDataSource level? I could use </p>
  
  <pre><code>HttpContext.Current.Items
  </code></pre>
  
  <p>inside ObjectDataSource handling object, but I don't like it, as my handling type do not know anything about ASP .NET (separation of concerns?). </p>
  
  <p>Thanks</p>