If I have the following (generic) ASP code:
<asp:ObjectDataSource runat="server" ID="myODS">...</asp:ObjectDataSource> <asp:GridView runat="server" ID="myGV" DataSourceID="myODS"> <Columns> <asp:TemplateField> <ContentTemplate> <asp:Label runat="server" ID="myLabel" Text='<%# [What goes here?] %>' /> </ContentTemplate> </asp:TemplateField> <asp:BoundField ... /> <%-- Other columns... --%> </Columns> </asp:GridView>
What can I call within an ASP expression, inside my Template Field, that will allow me to have access to my ODS results? Basically, inside the expression, I want to do something like row("ID")
to get a specific value out of a column from my ODS.