Can you put the ObjectDataSources ObjectCreated and ObjectDisposing events on the code behind of the same page?
If so, how would you do it?
Say I have a page called JobsLists.ascx, at the moment I have the following for my ObjectDataSource:
This would expect the events to be on the JobsListManager.cs page.
Can I put this on the JobsList.ascx.cs page?
The namespace would be MySystem.Views.Controls, with the page being JobsList.ascx.
If so, how would I do the "TypeName" or some other settings?
Thanks,
Tom
If so, how would you do it?
Say I have a page called JobsLists.ascx, at the moment I have the following for my ObjectDataSource:
Code:
<asp:ObjectDataSource
ID="mObjectDataSource"
runat="server"
SelectMethod="GetDataSet"
onobjectcreated="mObjectDataSource_ObjectCreated"
onobjectdisposing="mObjectDataSource_ObjectDisposing"
TypeName="MySystem.DataLayer.JobsListManager"
>
This would expect the events to be on the JobsListManager.cs page.
Can I put this on the JobsList.ascx.cs page?
The namespace would be MySystem.Views.Controls, with the page being JobsList.ascx.
If so, how would I do the "TypeName" or some other settings?
Thanks,
Tom