srolable control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • satiss7pwr
    New Member
    • Jan 2010
    • 41

    srolable control

    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
  • semomaniz
    Recognized Expert New Member
    • Oct 2007
    • 210

    #2
    Show us some of your code and we will be able to help you. And what is srolable do you mean Scrollable control?

    One way to do scrollable is using DIV tag with CSS (overflow:scrol l) and setting a fixed height for the DIV.

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      Do you mean like a ListView set to 'details'?

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        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:
        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>
        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.

        -Frinny

        Comment

        Working...