Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. scrollbar in panel

scrollbar in panel

Scheduled Pinned Locked Moved ASP.NET
sysadminarchitecturehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr Sam
    wrote on last edited by
    #1

    Hi all... Im dynamically adding data to a label which is placed in a panel. but the problem is that as the label fills up the panel length increases leading to scrollbars. I want the scrollbar to be to be pointing at the end of the panel. Here is the code sample

    <asp:Panel ID="Panel1" runat="server" BackColor="White" BorderColor="CornflowerBlue"
    BorderStyle="Solid" BorderWidth="1px" Height="250px" ScrollBars="Auto" Width="100%" CssClass="filter">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    <asp:Label ID="Label3" runat="server" BackColor="White"></asp:Label>
    </ContentTemplate>
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="btnSendMsg" />
    <asp:AsyncPostBackTrigger ControlID="Timer1" />
    </Triggers>
    </asp:UpdatePanel>
    </asp:Panel>

    Bye

    S 1 Reply Last reply
    0
    • M Mr Sam

      Hi all... Im dynamically adding data to a label which is placed in a panel. but the problem is that as the label fills up the panel length increases leading to scrollbars. I want the scrollbar to be to be pointing at the end of the panel. Here is the code sample

      <asp:Panel ID="Panel1" runat="server" BackColor="White" BorderColor="CornflowerBlue"
      BorderStyle="Solid" BorderWidth="1px" Height="250px" ScrollBars="Auto" Width="100%" CssClass="filter">
      <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
      <asp:Label ID="Label3" runat="server" BackColor="White"></asp:Label>
      </ContentTemplate>
      <Triggers>
      <asp:AsyncPostBackTrigger ControlID="btnSendMsg" />
      <asp:AsyncPostBackTrigger ControlID="Timer1" />
      </Triggers>
      </asp:UpdatePanel>
      </asp:Panel>

      Bye

      S Offline
      S Offline
      sudhanvag
      wrote on last edited by
      #2

      Hi Sam, I tried working on the sample and it is working fine. I meand the scroll bar is at the end (right end) of the panel. You can try with div tag instead of panel: <div style="overflow:auto; width:auto; height:250px; border-color:CornflowerBlue; border-width:medium; border-style:solid;"> Sudhanva.

      modified on Thursday, January 8, 2009 12:12 AM

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups