What is the best way to code this. My media type can be PDF or excel. I have a id that is 1 for PDF and 2 for excell Attachment att = new Go to the complete details ... Bookmark It