M
Mary Kerrigan
OK - I've been wrestling with this all day: I have a DataList:
<aspataList id="MyList" runat="server" OnItemCommand="pickCat">
<ItemTemplate>
<asp:LinkButton id="myLink" Text='<%# Container.DataItem(
"Subject" ) %>' CommandArgument='<%# Container.DataItem( "Subject" )
%>' Runat="Server"/>
</ItemTemplate>
<SelectedItemTemplate>
<b><%# Container.DataItem( "Subject" ) %></b>
</SelectedItemTemplate>
</aspataList>
How do I reference the (selected) dataitem "SubjectID" in the
code-behind????? This is different from "Subject" - it's in the same
DataSet.
Thanks
<aspataList id="MyList" runat="server" OnItemCommand="pickCat">
<ItemTemplate>
<asp:LinkButton id="myLink" Text='<%# Container.DataItem(
"Subject" ) %>' CommandArgument='<%# Container.DataItem( "Subject" )
%>' Runat="Server"/>
</ItemTemplate>
<SelectedItemTemplate>
<b><%# Container.DataItem( "Subject" ) %></b>
</SelectedItemTemplate>
</aspataList>
How do I reference the (selected) dataitem "SubjectID" in the
code-behind????? This is different from "Subject" - it's in the same
DataSet.
Thanks