From: bthumber on 6 Jul 2010 12:17 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); } }
|
Pages: 1 Prev: asp.net Framework 2.0 Ajax Next: ASP.NET 64 bit compilation |