asked on
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" CaptionAlign="Left" Width="550px"
DataSourceID="ObjectDataSource7"
AutoGenerateColumns="False"
>
<RowStyle HorizontalAlign="Left" VerticalAlign="Top" />
<HeaderStyle HorizontalAlign="Left" VerticalAlign="Top" />
<EditRowStyle HorizontalAlign="Left" VerticalAlign="Top" />
<Columns>
<asp:BoundField DataField="prod" HeaderText="Product" SortExpression="Product" />
<asp:BoundField DataField="ver" HeaderText="Version" SortExpression="Version" />
<asp:BoundField DataField="OS" HeaderText="OS" SortExpression="OS" />
<asp:BoundField DataField="OSVer" HeaderText="OSVer" SortExpression="OSVer" />
<asp:BoundField DataField="CPU" HeaderText="CPU" SortExpression="CPU" />
<asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource7" runat="server"
SelectMethod="GetPorts" TypeName="PortsListService.PortsList">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" Name="Prod"
PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="DropDownList2" Name="Ver"
PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="DropDownList3" Name="OS"
PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="DropDownList4" Name="OSVer"
PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="DropDownList5" Name="CPU"
PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="DropDownList6" Name="Stat"
PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
and i reference to the webservice in the code behind file:
PortsListService.PortsList myService = new PortsListService.PortsList();
DataSet myDataSet = myService.GetPorts(Prod, Ver, OS, OSVer, CPU, Stat);
Prod, Ver, OS, OSVer, CPU, Stat are parameters i pass from the dropdowns.
Any help is appriciated.
Thanks