Code Behind Mailto

T

Thom Little

The following handler when clicked will invoke the e-mail client.
Unfortunately, after the e-mail is sent a blank page is displayed on the
browser.

What is the technique for displaying the e-mail client and when the e-mail
is sent control is returned to the invoking webpage? What was your source
for the information?

private void btnComments_Click(object sender, System.EventArgs e)
{
Response.Redirect( "mailto:Thom Little <[email protected]>" );
}

(Yes this is the code behind equivalent of a simple <a href="mailto...)
(This question was moved over from the webservices newsgroup.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Code Behinf MailTo 0
Confirm from code behind 0
Mailto in Code behind 2
using MAILTO from a web page 2
code behind 2
Problem with long mailto: - urls 3
Mailto: 2
Javascript and mailto 5

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top