Before denormalizing the data in hopes of simplifying the binding, I thought
I would ask if I was missing an obviously simple approach to doing what I am
after (and leaving the dataset denormalized).
Thanks
"Chris Leuty" <chris...@nospam.briniker.com> wrote in message news:OY02of8K...@tk2msftngp13.phx.gbl...
<TD vAlign="top" align="right"><asp:label id="Label13" runat="server" CssClass="form-label">Trades</asp:label></TD>
<TD>
<asp:listbox id="lstTrades" runat="server" CssClass="form-text" Width="154px" SelectionMode="Multiple" DataSource='<%# ContactInfo1 %>' DataMember="Trades" DataTextField="TradeName" DataValueField="TradeID">
</asp:listbox></TD>
lstTrades = CType(e.Item.FindControl("lstTrades"), ListBox)
I think once I get to that point, the actual selection based on the data will be easy. So far, I haven't found a good place to hook this line (I keep getting back Nothing).
"Scott G." <noe...@this-is-extra-hotmail.com> wrote in message news:OEfke5FL...@tk2msftngp13.phx.gbl...
"Chris Leuty" <chris.leuty-at-nospam.brinker.com> wrote in message news:%23bmnrLH...@TK2MSFTNGP09.phx.gbl...
"Scott G." <noe...@this-is-extra-hotmail.com> wrote in message news:eOpgNWHL...@TK2MSFTNGP10.phx.gbl...
"Chris Leuty" <chris.leuty-at-nospam.brinker.com> wrote in message news:euPitxH...@TK2MSFTNGP11.phx.gbl...
CType(dlContactList.Items(e.Item.ItemIndex).FindControl("lstTrades"), ListBox)lstTrades =
VB casting is nasty looking to me (I much prefer C#, but I inherited this project....you know how that goes...). Anyway, you can see that the old line (lstTrades = CType(e.Item.FindControl("lstTrades"), ListBox)) is simply looking in the wrong Item collection. Would help to look in the DataList hierarchy. Duh.
Thanks for the help
Chris
"Scott G." <noe...@this-is-extra-hotmail.com> wrote in message news:uBunlOIL...@TK2MSFTNGP10.phx.gbl...