[RESOLVED] Datalist Question

Hi All,

I am currently populating a Datalist with

<table id="tblRelationships" runat="server" border="1">
<tr><td>
<asp:DataList ID="DlstAttributes" runat="server" AlternatingItemStyle-BackColor="#eeeeee">
<ItemTemplate>
<asp:Label ID="lblAttributeid" runat="server" text='<%#Eval("ID")%>'></asp:Label>
</ItemTemplate>
<ItemTemplate>
<asp:Label ID="lblAttribute" runat="server" Text='<%#Eval("Name")%>'></asp:Label>
</ItemTemplate>
</asp:DataList>
</td></tr>

and the data binds no problem. What I want to be able to do are 2 things.

1. Restrict the length of the datalist so that I might set the height to 2000 and then have scrollbars.
2. I want to be able to click on an item and populate a second datalist item based on the value selected.
[1010 byte] By [Bill Crawley] at [2007-11-20 11:28:18]
# 1 Re: [RESOLVED] Datalist Question
You can use a <div> to set the confines and just alter its styles for larger contents.

<div style="max-height: 2000; overflow: auto">
...
</div>
PeejAvery at 2007-11-9 11:54:03 >