I placed an ObjectDataSource in my asp.net page (VB.NET) that is bound to a a FormView. For a simple project this works fine as I use Conainter.DataItem to display the value in a label such as:
<asp:Label ID="lblName" runat="server" Text='<%# Container.DataItem.Product
My question now is - how to I access all the values returned from the ObjectDataSource's SelectMethod from Code-Behind. There are many reasons why I may want to do this such as conditional formatting, setting variables, cookies, session variables, hiding/displaying panels on the page, etc.
Please let me know how this can be done properly.
<asp:Label ID="lblName" runat="server" Text='<%# Container.DataItem.ProductName %>'></asp:Label>