I'm working with ObjectDataSource and FormView control.
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.
So in FormView:
OnItemInserted="OnFormItemInserted"
handler I need to access that ID. But how to pass that id gracefully from ObjectDataSource level? I could use
HttpContext.Current.Items
inside ObjectDataSource handling object, but I don't like it, as my handling type do not know anything about ASP .NET (separation of concerns?).
Thanks