Code Behind Mailto

Discussion in 'ASP .Net Web Controls' started by Thom Little, Jul 28, 2004.

  1. Thom Little

    Thom Little Guest

    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 <>" );
    }

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

    --
    -- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
    --
     
    Thom Little, Jul 28, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Miller [msft]

    Re: Code Behind vs. no code behind: error

    Ben Miller [msft], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    592
    Alphonse Giambrone
    Jun 28, 2003
  2. Joriz

    Mailto in Code behind

    Joriz, Oct 23, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,537
    Joriz
    Oct 25, 2004
  3. Larry Rebich
    Replies:
    1
    Views:
    463
    =?Utf-8?B?TGVvbiBNYXluZQ==?=
    Nov 20, 2006
  4. John

    Non-code behind to code behind

    John, Feb 19, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    490
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 19, 2007
  5. Thomas Gagne
    Replies:
    2
    Views:
    325
    Robert Klemme
    Mar 15, 2013
Loading...

Share This Page