Can you Block a URL?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chad

    Can you Block a URL?

    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.
  • Aaron [SQL Server MVP]

    #2
    Re: Can you Block a URL?

    You can't control the browser's print / page setup settings from ASP.


    --

    (Reverse address to reply.)




    "Chad" <rccompton@gmai l.com> wrote in message
    news:ca8f9ec4.0 410181201.14305 02f@posting.goo gle.com...[color=blue]
    > 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.[/color]


    Comment

    • Ray Costanzo [MVP]

      #3
      Re: Can you Block a URL?

      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" <rccompton@gmai l.com> wrote in message
      news:ca8f9ec4.0 410181201.14305 02f@posting.goo gle.com...[color=blue]
      >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.[/color]


      Comment

      • Jeff Cochran

        #4
        Re: Can you Block a URL?

        On 18 Oct 2004 13:01:49 -0700, rccompton@gmail .com (Chad) wrote:
        [color=blue]
        >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?[/color]

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

        Jeff

        Comment

        • kaeli

          #5
          Re: Can you Block a URL?

          In article <ca8f9ec4.04101 81201.1430502f@ posting.google. com>,
          rccompton@gmail .com enlightened us with...[color=blue]
          > 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.
          >[/color]

          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.



          Comment

          • Chad

            #6
            Re: Can you Block a URL?

            Thanks for the quick response guys. I appreciate it.

            Comment

            Working...