Code Behinf 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 codebehind equivbelent of a simple <a href="mailto...)
 

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 Behind Mailto 0
using MAILTO from a web page 2
Mailto in Code behind 2
Problem with long mailto: - urls 3
Mailto: 2
Confirm from code behind 0
Javascript and mailto 5
Gridview hyperlink column mailto event 2

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,161
Latest member
GertrudeMa
Top