By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 897 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Header / Footer

P: n/a
Can I add dinamicaly (in my code) a header and a footer for each time I want
to print a web page from my web application?

NOTE: The print command made for my is a click in a button that I have in my
web page, and not in browser menu File->Print
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
use CSS to set the @media tags.
It's not an serverside issue but rather a clientside one

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"ruca" <ru***@iol.pt> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
Can I add dinamicaly (in my code) a header and a footer for each time I want to print a web page from my web application?

NOTE: The print command made for my is a click in a button that I have in my web page, and not in browser menu File->Print
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

Nov 18 '05 #2

P: n/a
Hi Ruca,

I think that will need Javascript, have a look at the page for scripting.

http://msdn.microsoft.com/library/de...blocktopic.asp

http://msdn.microsoft.com/library/de...blocktopic.asp

And this I found for the Javascript, however I never used it.

http://msdn.microsoft.com/library/de...DHTMLPRINT.asp

I hope this helps?

Cor
Nov 18 '05 #3

P: n/a
The answer to the header/footer issue requires 'User Controls'
[1]
http://msdn.microsoft.com/library/de...ercontrols.asp
[2]
http://msdn.microsoft.com/library/de...letcontrol.asp
[3] http://www.aspfree.com/c/a/ASP.NET/M...-to-ASP.NET/6/
[4]
http://www.devarticles.com/c/a/ASP.N...ined-Part-1/1/

To dynamically determine which User Control is used in a header/footer is
also possible

[1]
http://msdn.microsoft.com/library/de...mmatically.asp

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/


"ruca" <ru***@iol.pt> wrote in message
news:eg*************@tk2msftngp13.phx.gbl...
Can I add dinamicaly (in my code) a header and a footer for each time I want to print a web page from my web application?

NOTE: The print command made for my is a click in a button that I have in my web page, and not in browser menu File->Print
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.