I want the email hyperlink to add Subject and Body as well.
So when you click "Email Error to Support" it will set the Subject as "Error in Application" and the body to Me.TextBoxErrorMessage.Text.
Me.TextBoxErrorMessage.Text will contain the exception details etc.
Thanks
AndrewYou're probably best to use the native capabilities of the html mailto:-
mailto:someone@.blah.com?subject=Error in Application&body=<%=Me.TextBoxErrorMessage.Text %
If the spaces cause a problem use the + instead of the space and change Me.TextBoxErrorMessage.Text to Me.TextBoxErrorMessage.Text.replace(" ", "+")
Are you using a Hyperlink server control?
Try this:
myHyperlink.NavigateUrl = "mailto:myaddress@.domain.com?subject=Error in Application&body=" & Me.TextErrorMessage.Text
Yes I think I am using a Hyperlink server control.
Cheers for the help guys!!
Andrew
0 comments:
Post a Comment