Listbox in a div container.....how to make it work?!?!?1
Posted on 2006-10-31
I have a listbox on my asp.net website. I wanted to display horizontal scrollbars on the listbox...so I put the listbox in a div container. Now the scrollbars both display, however I cannot seem to capture the selected item in the listbox now. It selects fine but the selectedindex is always -1!!!!!!
any help is much appreciated:
here is the code for the listbox:
<div id="myContainer" style="height:70px;width:223px;overflow:scroll; z-index: 116; left: 145px; position: absolute; top: 361px;" atomicselection="false" >
<asp:ListBox ID="ChangeType" runat="server" DataSourceID="ChangeDataSource"
it took me ages to get the scrollbar part to work and now this problem :-)