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

Can you Block a URL?

P: n/a
I need to block a URL from printing at the bottom of the page from a
website. Is there any code that can do that? I know I can make it
into a PDF on the fly and that will elminate alot of hassle, but is
there any easier way? Please assist.
Jul 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
You can't control the browser's print / page setup settings from ASP.
http://www.aspfaq.com/2014

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Chad" <rc*******@gmail.com> wrote in message
news:ca**************************@posting.google.c om...
I need to block a URL from printing at the bottom of the page from a
website. Is there any code that can do that? I know I can make it
into a PDF on the fly and that will elminate alot of hassle, but is
there any easier way? Please assist.

Jul 21 '05 #2

P: n/a
No, there isn't any way to control this with ASP. It's an option that the
visitor can set in his browser.

Ray at home

"Chad" <rc*******@gmail.com> wrote in message
news:ca**************************@posting.google.c om...
I need to block a URL from printing at the bottom of the page from a
website. Is there any code that can do that? I know I can make it
into a PDF on the fly and that will elminate alot of hassle, but is
there any easier way? Please assist.

Jul 21 '05 #3

P: n/a
On 18 Oct 2004 13:01:49 -0700, rc*******@gmail.com (Chad) wrote:
I need to block a URL from printing at the bottom of the page from a
website. Is there any code that can do that?


That's done on the client, so using ASP you really can't affect it.

Jeff
Jul 21 '05 #4

P: n/a
In article <ca**************************@posting.google.com >,
rc*******@gmail.com enlightened us with...
I need to block a URL from printing at the bottom of the page from a
website. Is there any code that can do that? I know I can make it
into a PDF on the fly and that will elminate alot of hassle, but is
there any easier way? Please assist.


You can't affect the printer settings directly from javascript, no.
If it were in a div you made yourself, you could use the @media in your
stylesheet to not print it, but I believe the URL printing is just how some
printers do it. You'd have to have access to the printer settings, which
normal client-side javascript cannot do. If this is an intranet app with
MSIE, you might have more of a chance, but I think you'd have to use ActiveX
or something.

--
--
~kaeli~
Kill one man and you are a murderer. Kill millions and you
are a conqueror. Kill everyone and you are God.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 21 '05 #5

P: n/a
Thanks for the quick response guys. I appreciate it.
Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.