Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
C#
<div id="cms-ptrs-img">
   <asp:Panel runat="server" ID="pnlFabric" Height="300px" ScrollBars="Auto">
     <asp:DataList runat="server" ID="dlistPattren" RepeatColumns="4" OnItemCommand="dlistPattren_ItemCommand" OnSelectedIndexChanged="dlistPattren_SelectedIndexChanged">
      <itemtemplate>
       <asp:ImageButton runat="server" ID="imgPattren" Height="100px" ImageUrl='<%#Eval("BigImage") %>' Width="75px" CommandName="View" ommandArgument='<%#Eval("Id") %>'>
       <itemtemplate>
</div>

Here when i click on image button the scroll bar will going to to position.I dont want that.

Please tell me how to maintain the position of a scroll bar of a panel.
Posted
Updated 10-Oct-13 1:59am
v2
Comments
JoCodes 10-Oct-13 8:15am    
Are you trying to avoid scroll bar with fixed size?
[no name] 10-Oct-13 8:29am    
Once put panel height and width same as imagebutton height and width.Then see!

1 solution

From your panel set ScrollBars to none as mentioned below :

ASP.NET
<asp:panel runat="server" id="pnlFabric" height="300px" scrollbars="None" xmlns:asp="#unknown"></asp:panel>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900