CheckBoxList and Scrollbars

G

Guest

Hi,

I have an ASP.NET page with a CheckBoxList. The HTML code is the following:

<TABLE id="Table2" height="100%" cellSpacing="0" cellPadding="0"
width="100%" border="0">
<TR><TD></TD></TR>
<TR>
<TD height="100%"><asp:checkboxlist id="CheckBoxList1" runat="server"
Height="100%" Width="100%" CellSpacing="1" CellPadding="1"
BorderWidth="2px" BorderStyle="Inset"></asp:checkboxlist></TD>
</TR>
</TABLE>

However, when, in the code behind, I add items in the CheckBoxList, the
checkboxlist height is automatically increased. Instead, I would like to have
horizontal scrollbars, so that I can define the height that I want for my
CheckBoxList and any other control in the page.

Any idea on how to achieve this?

Thanks.
Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top