Download pdf, word doc or display html from WebService - file stream help?
Hi,
I need some help with some C# .net code which allows the user to click on the relevant image and download either a pdf, word doc or display html in a new window.
I have displayed some of the code below which I use to display the images in a repeater, can someone please provide me with some code to do the above. pdf will be received as binary response and html is string (html should have all html tags outside and including body removed, however any <h1>, <h2> 's within the body need to be replaced with <h3>'s
So in summary my repeater will show numerous pdf images so I need to somehow pass through the value of the relevant one from imgPDF_Click and then allow the user to download this pdf file, I also need to do the same thing with html but before presenting this in a new window (html should have all html tags outside and including body removed, however any <h1>, <h2> 's within the body need to be replaced with <h3>'s) and finally imgDoc_Click for the word doc file again this would be exactly the same as the pdf event and will be retrieved as binary from the web service.
Can anyone please help with the above by providing some code?
Bookmarks