Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie? - Response MailTo Tag

Status
Not open for further replies.

SavantMan

Programmer
Apr 17, 2002
165
US
First off, my experience is primarily with windows apps, so I appologize for the simplicity of this.

This is using v1.1 of the framework:

I've added a button to a aspx page that generates a new email - contents, who it's going to etc. info generated in code.

The entire value of the link is in a string called MailString

I've confirmed the email is opened on the client machine etc. via
Code:
Response.Redirect(MailString);


The problem is this is obviously not quite what I want -- this clears the page in the browser. I want to leave the user on the page and just open the new mail message.

Any suggestions?
 
Response.Redirect makes the client's browser request another page, so you could redirect them to a mailto link e.g.
Code:
Response.Redirect("mailto://ca8msm@aspnetlibrary.co?subject=mysubject&body=mybody")
but they won't remain on the same page. This may be possible to overcome with javascript, otherwise you will have to just create a link on your page and ask the user to click it.


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244.
 
It's already a button within a grid. I'm trapping when the button is clicked and that's when the value of MailString is populated with a syntax that's identical to what you've got in the mailto. I really just need to execute that part in some way other than with a "redirect". I tried just a Response.Write(MailString); followed by Response.Flush(); but that didn't get what I needed either.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top