I’m trying to make my own ObjectDataSource in my .NET Web Project. This is
my approach:
I have a class that returns an object (called from WCF). The object is consumed
by a ObjectDataSource. The ObjectDataSource has a selectmethod that picks up
the object I’ve created in my class.
When the user clicks a button, the method is called and filled with
parameters so and the object is filled with the result from WCF. The object has
a return value but their isn’t anything appearing in my DataGrid.
Do I need to
fill the ObjectDataSource object? Does it doesn’t this automatically when the method
is fired? Am I missing something?
Any help is appreciated!!
1
2 "ObjectDataSource1" runat="server"
3 SelectMethod="getWCFObject"
4 TypeName="MyApp.MyObjectClass">
5
6 "id" Type="String" />
7 "businessProcessStepId" Type="String" />
8 "businessProcessStepType" Type="String" />
9 "handledStatusCollection" Type="Object" />
10 "serviceStatusCollection" Type="Object" />
11 "succeeded" Type="Boolean" />
12 "startDate" Type="DateTime" />
13 "endDate" Type="DateTime" />
14 "environmentId" Type="Int32" />
15 "rowCount" Type="Int32" />
16
17
18
19 "myGrid" runat="server" DataSourceID="ObjectDataSource1"
20 AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333"
21 GridLines="None">
22 "#990000" Font-Bold="True" ForeColor="White" />
23 "#FFFBD6" ForeColor="#333333" />
24 "#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
25 "#FFCC66" Font-Bold="True" ForeColor="Navy" />
26 "#990000" Font-Bold="True" ForeColor="White" />
27 "White" />
28
29