How can I launch an Outlook email window (similar to what mailto: does in a hyperlink) ?
This needs to be done in a LinkButton click event.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Consider that the mailto functionality is a function that needs to happen client side. You are going to need javascript to do it. Depending on when you want the mailto to happen you have two choices.
If you want it to happen as soon as the LinkButton is clicked then just add to the
LinkButton‘sOnClientClickevent:If you want it to happen AFTER the server side code has run your are going to have wire up the javascript event to run when the new page starts up:
Hope that helps.