Last post Sep 07, 2008 08:45 PM by davidebb
Sep 05, 2008 11:40 AM|craigshoemaker|LINK
Is there a way to pass an instance of the object that the DynamicObjectDataSource instantiates from the "TypeName" property (or get code-behind access to this instance)?
I am experimenting with implementing Model-View-Presenter with DynamicData and would like to use an instance of my presenter for the controlling object for the data source control rather than having multiple instances on the page that uses the DynamicObjectDataSource.
Sep 07, 2008 08:45 PM|davidebb|LINK
I believe that subscribing to the ObjectCreated event will give you the object you want (or ObjectCreating will let you set the object). Note that this is general to ObjectDataSource, and not specific to the derived DynamicObjectDataSource.