i m developing a mesage system and i want a control in which i can keep my panel in which all message subjects display,but my messsages so many there for i want one srollable control ,pls any one help
srolable control
Collapse
X
-
Tags: None
-
I just wanted to add to semomaniz's answer.
You should place the control into either an ASP.NET Panel control or a <div> (the Panel is probably better because it is rendered as a <div>, is given a unique id automatically, and you have access to it in your server code) and then set the style property for the Panel (or <div>) so that it has overflow:auto.. ..to get it to scroll vertically you also need to set the height style of the Panel/Div).
For example:
Please note that if you place this Panel into an UpdatePanel, the scroll position will be lost unless you implement some JavaScript that will reset the scroll position when the Panel is redrawn in the browser after an Asynchronous Postback.Code:<asp:Panel ID="ScrollingContainerForContent" runat="server" style="overflow:auto; height:30%"> In here you need to place the control that will display the information </asp:Panel>
-FrinnyComment
Comment