Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckboxList Queston

Status
Not open for further replies.

checkai

Programmer
Jan 17, 2003
1,629
US
I want to have a checkboxlist, but I want it in a scrollable object, so that the page doesn't go on forever...

Is this possible? or can you use a DataListBox in this manner?

thanks,
DLC
 
Put the list into a <DIV> object seems to work pretty well for other situations I have had that sound similiar.

More on that here thread855-564356

That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
I have looked at the other posting and tried this, but it does not seem to work. I have never used a <div> tag before, so I'm not sure what's happening...

<div overflow:auto>
<TABLE id=&quot;Table3&quot; style=&quot;Z-INDEX: 110; LEFT: 80px; WIDTH: 518px; POSITION: absolute; TOP: 320px; HEIGHT: 104px&quot; cellSpacing=&quot;1&quot; cellPadding=&quot;1&quot; width=&quot;518&quot; border=&quot;0&quot;>
<TR>
<TD style=&quot;HEIGHT: 23px&quot;></TD>
</TR>
<TR>
<TD><asp:checkboxlist id=&quot;chkList&quot; runat=&quot;server&quot; Width=&quot;512px&quot; Height=&quot;8px&quot; BorderStyle=&quot;Inset&quot;></asp:checkboxlist>
</TD>
</TR>
</TABLE>
</div>

Any suggestions?
Thanks,
DLC
 
POSITION: absolute; TOP: 320px; HEIGHT: 104px&quot;

That would be why it isn't working. You can't use absolute postioning with this method. Absolute positioning anchors the control to a certain spot on the page. I have found that using absolute positioning messes up my forms in most cases and I usually avoid it.
*Note: any form designed in grid mode is using absolute positioning. If you change to flow mode later the controls that you have placed on the form before you switched modes still use absolute positioning. Simply grab the control and move it a bit in the designer to get rid of the absolute positioning.

One other thing that will help is that you'll need to specify the hieght of the <Div> object, otherwise it does not know when to start scrolling material.

That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top