Opening a PDF on a web form in asp.net [duplicate] - c#

This question already has answers here:
Creating download link to a file on a file server
(4 answers)
Closed 7 years ago.
I am looking for the simplest way to open a PDF when a link or button is clicked. This is on a web page and for example will say . Any advice on how to store this PDF also so it can be generated and displayed would be greatly appreciated as it is a very large file with massive amount of content. I have tried doing it on the button click event but failed miserable as have never opened a external file before.

Something as simple as. To open the pdf is new tab you want to use _blank value for the target attribute
<a href="PathToYourPdfDocument" target="_blank" >Message Here</a>

Related

how to display another html in current html using asp.net? [duplicate]

This question already has answers here:
How to display content of a .html file in a web page?
(4 answers)
How to make a html page to show content from another url
(5 answers)
Closed 1 year ago.
Okay, so the idea is, someone uploads a word doc that has been turned into html file using words own saving system. Now I need to display said word doc in html form, modifie it and turn it back into docx form.
How can I (once i know the file specific location in a x directory) open it up in the current html without having to redirect to a new page?

How to "pull" an existing pdf into the app? [duplicate]

This question already has answers here:
Display a PDF in WPF Application [closed]
(9 answers)
Closed 3 years ago.
I currently have an app in C#/WPF, and I have a manual on how to use it in pdf, and I'm thinking of adding a button that when clicked open the manual ... How can I do this?
Process.Start("C:\Temp\yourname.pdf");
replace the string "C:\Temp\yourname.pdf" with the path and filename for the pdf file you want to open.
This will cause the pdf to open in your systems default pdf application.
You will need: - using System.Diagnostics;

Handle multiple files with one instance of the program [duplicate]

This question already has answers here:
Open all files when user right clicks and selects "Open With"
(2 answers)
Closed 5 years ago.
Basically the problem is that I'am trying to open files with the program I made by right clicking on the file and open with... It works fine for a single file but when I try to open multiple files at the same time it starts an instance of the program for each individual file.
Finally, What I'am trying to get to is a way of changing this behavior in order to make one instance of the program handle all files.
Thanks,
You could check to see if there is already an instance of the program running before you initialize the window then send the file path to the open program or something along those lines
You won't like the answer as it gets complex but it is already answered here...
Open all files when user right clicks and selects "Open With"

Browser back button and state retains? [duplicate]

This question already has answers here:
browser back button is not updating page
(3 answers)
Closed 9 years ago.
I have an eCommerce system where I have listed the Recently Viewed Count and Items as viewer browse its details page.
When the user had viewed any item using any browser and click the Back button of the Browser then, recently viewed items module doesn't get refresh at all. But on reloading the url(Refresh), the module gets refreshed and shows the recently viewed items and Count?
Look to the History.js. This framework uses HTML 5 browser's features and can handle back button events.
Going back does not refresh any data, so you'll need to ask for the information from the server each time you wan't the information updated, for example using Ajax.

asp.net + c# tips to edit docx inside my app [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Open/handle Word documents like SharePoint
I´ve developed one website where it is possible to upload docx files to it. Now I want a way to edit it directly in browser, I meant, a way to do like google docs does.
OR
Copy from MSWord to my app window e maintain all the formats, including tables.
for the manipulation of word documents you can use DocX. With this you can read/write from/to word documents (docx not doc). This however is a long way from editing your document in a google docs like manner...
It does match your second request though!

Categories