Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

hide items on print with Css page

Posted on 2010-11-12
2
Medium Priority
?
398 Views
Last Modified: 2012-05-10
I am trying to get a CSS print.css page working with a dot.net 1.1 project.  I added between the header tags but when i click on print button on the exporer it still brings up same information and does not hide items on the print.css page.


<HEAD>
	
		<title>State Active Duty</title>
		<script src="../Include/Header.js"></script>
		<link rel="stylesheet" type="text/css" media="print" href="../print.css" runat="server"></link>

	</HEAD>


Css page
body

#headTbl {display:none;}
#button1 {display:none;}
#lnkMain {display:none;}

Open in new window

0
Comment
Question by:kdeutsch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
LZ1 earned 1400 total points
ID: 34122741
2 things that may or may not have an effect:
1. You don't need the closing </link> at the end of the style sheet part.
2. You may not need the runat part either.  

Also make sure your CSS is in the right directory and that you can access it with an absolute path.
EX: http://www.yourdomain.com/css/print.css
0
 

Author Closing Comment

by:kdeutsch
ID: 34132343
Thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question