Can this be done with ASP.NET


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Can this be done with ASP.NET

  1. #1
    Kevin Moore Guest

    Can this be done with ASP.NET


    Hi,

    Our ASP.Net application needs to present a PDF file to our users. We would
    like the PDF to display in a new window. The catch is that I would like to
    popup a new version of their browser and display the PDF in that. Any ideas?

    Thanks,

    Kevin

  2. #2
    Reine Olofsson Guest

    Re: Can this be done with ASP.NET


    Hopefully you know that the user want to see the PDF (i.e Followed a link).
    There are 2 ways to solve this:

    1) Give the Anchor tag an target attribute with the value "_new".
    2) Use JavaScript to open a new window when the page loads.

    "Kevin Moore" <Kevin@MooreSSI.com> wrote:
    >
    >Hi,
    >
    >Our ASP.Net application needs to present a PDF file to our users. We would
    >like the PDF to display in a new window. The catch is that I would like

    to
    >popup a new version of their browser and display the PDF in that. Any ideas?
    >
    >Thanks,
    >
    >Kevin



  3. #3
    Phil Weber Guest

    Re: Can this be done with ASP.NET

    > For example to redirect the user to a page within our ASP.NET
    > application we use response.redirect("info.aspx"), I would like
    > to somehow show a new window with the PDF in code.


    Kevin: I don't know of any way to open a new window on the client from
    server-side code. As far as I know, you'll have to use client-side code
    (e.g., JavaScript, target attribute of an href) to do so.
    ---
    Phil Weber



  4. #4
    Kevin Moore Guest

    Re: Can this be done with ASP.NET


    Reine,

    Thank you for your suggestion, but unfortunately I didn't explain myself
    thoroughly enough. I would to spawn the new window within code and not HTML/Javascript.
    For example to redirect the user to a page within our ASP.Net application
    we use response.redirect("info.aspx"), I would like to somehow show a new
    window with the PDF in code.

    Kevin

    "Reine Olofsson" <reine@faktab.se> wrote:
    >
    >Hopefully you know that the user want to see the PDF (i.e Followed a link).
    >There are 2 ways to solve this:
    >
    >1) Give the Anchor tag an target attribute with the value "_new".
    >2) Use JavaScript to open a new window when the page loads.
    >
    >"Kevin Moore" <Kevin@MooreSSI.com> wrote:
    >>
    >>Hi,
    >>
    >>Our ASP.Net application needs to present a PDF file to our users. We would
    >>like the PDF to display in a new window. The catch is that I would like

    >to
    >>popup a new version of their browser and display the PDF in that. Any ideas?
    >>
    >>Thanks,
    >>
    >>Kevin

    >



  5. #5
    Kevin Moore Guest

    Re: Can this be done with ASP.NET


    Phil,

    That's what I thought but I wanted to make sure that ASP.Net wasn't somehow
    magical in nature and could do those type of things <bg>

    Kevin


    "Phil Weber" <pweber@nospam.fawcette.com> wrote:
    > > For example to redirect the user to a page within our ASP.NET
    > > application we use response.redirect("info.aspx"), I would like
    > > to somehow show a new window with the PDF in code.

    >
    >Kevin: I don't know of any way to open a new window on the client from
    >server-side code. As far as I know, you'll have to use client-side code
    >(e.g., JavaScript, target attribute of an href) to do so.
    >---
    >Phil Weber
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center