scrollbar in panel
-
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
-
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
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