Link to home
Start Free TrialLog in
Avatar of tatton777
tatton777Flag for United States of America

asked on

How do I create a repeater with fixed size that has scrollbars?

I would like to embed a repeater in my page that is 600x400. If the size of the repeater is greater than the defined size I would like scrollbars to appear.
ASKER CERTIFIED SOLUTION
Avatar of Snarf0001
Snarf0001
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Note that the div could also be set in the repeaters HeaderTemplate and FooterTemplate, but then it won't show up at all if the repeater doesn't have ANY data.
Avatar of tatton777

ASKER

Is there a way to get it to just pop up scrollbars for the vertical?
Try overflow:auto; instead of scroll.
Or if you are okay with using the Panels. I have been using it all along.

<asp:Panel ID="pnlContainer" runat="Server" Width="100%" Height="300px" ScrollBars="Auto">
            <asp:Repeater.................................... />
</asp:panel>
Thanks for your help!