I originally made this post to the sharepoint.development_and_programming
group, but perhaps this is a better place for it.
Using .Net 3.0, Sharepoint 2007, I wrote a webpart that displays an Exchange
Inbox within a datagrid. Sounds stupid, but there are reasons for it.
If an Inbox email has an attachment I need to open the attachment. So, if
it's a Pdf, I want to create a link so that when the user clicks it the Pdf
opens.
In a regular web app that I wrote to do this same thing, the attachment link
pointed to a different .aspx page, passing it the "Key" of the attachment,
and that page would retrieve the attachment as a byte array, set the
response content type to the appropriate one (application/pdf in this
example), and write the binary back to the web browser. The Pdf would then
open.
How do I now do this with this webpart and Sharepoint? As it stands now, I
am writing an <a href> just so I can see the attachment name, but I don't
know what to point the href to, or even if I should be using and href.
Any have any ideas?
Thanks in advance,
Mike
"milop" wrote:
> .
>
If I use the former (.aspx page). Putting a page in the "_layouts" folder
makes the page accessible to the whole sharepoint site?
Thanks again,
Mike
"Mike" <Mi...@discussions.microsoft.com> wrote in message
news:17B5E440-A7D7-4B39...@microsoft.com...