-
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
-
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
-
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
-
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
>
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks