The Object Datasource is an object which binds a gui object to a specially written business object
Sample
1 | <asp:ObjectDataSource ID="odsSomeAreAvailable" runat="server"TypeName="ACAD2SDE.BL_Acad_Reservation" SelectMethod="GetAL_Reserved_InAPlan" > |
Notes:
- ObjectDataSource objects do not recognise the Optional attribute of a function. Consequently you must provide parameters for each argument of a function whether or not it is optiona..
Events:
- ObjectDataSource.Selecting - this event is raised when the ObjectDataSource is being used to grab a set of objects. I sometimes use it when the control is bound a grid view. If the method has parameters which I just cant handle any other way, then this makes a good emergency. Pity the code is that much harder to read as a result.