Here is the code:
protected void CopyEmailToClipboard()
Here is the error:
Current thread must be set to single thread aparatment (STA) mode bbefore OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
I've read some threads on how to handle this but all the information I read says that I need to include code like this
As you know aspx pages don't have the Main method. How do I get around this?