Can you Block a URL?

C

Chad

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.
 
R

Ray Costanzo [MVP]

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
 
J

Jeff Cochran

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
 
K

kaeli

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top