How do you read the attachment once you get the file?

B

bthumber

In my message attachment the user clicks on the message a new page is popped
up. Question, How

I get the contents of the message so the user can read it. Mind you the
message is stored in a

database file. I can see the ID on the next page, please see my code so far.

private void SetAttachment(Go.Message message)
{
if(message.MessageAttachments != null)
{
IDictionaryEnumerator enumer = message.MessageAttachments.GetNumerator();
while(enumer.movenext)
{
GO.myFile file = (GO.myFile)enumer.Value;
Label hyper = new Label();
hyper.Text = file.FileNM;
hyper.Attributes.add("onclick", string.Format("return
window.open('GetFile.aspx?ID=

{0}');", file.FileID));
PlaceHolder.controls.add(hyper);
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,167
Latest member
SusanaSwan
Top