Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.net Panel Scrollbards

Status
Not open for further replies.
Jun 5, 2006
28
US
Hi,
I have the following code

<asp:panel ID="Panel1" runat="server" Height="150px" Width="200px" ScrollBars="Auto" CssClass="box"> here is my text...</asp:panel>

when the code runs i see a scrollable panel with a lot of text. When i hit the print button, it only shows me the text that i can see at one time on the screen. I noticed that when i do ScrollBars="none" and then i hit print, the printout comes out with all the text. Is there anyway to use my code above but when i hit the print button to use css to set scrollbars="none"?
 
Yes, use a separate style sheet for printing and set the styling for the item in that file. You can specify that the file only needs to be used when printing by using the media="print" option in the link to the style sheet.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top