473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Response Use MailTo

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
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?
Aug 16 '07 #1
6 1531
Matt F wrote:
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
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?
Open it in a new window.

--
Göran Andersson
_____
http://www.guffa.com
Aug 17 '07 #2
Walter,

Thank you for your response. As mentioned in my original post, this is for
use with V1.1 of the framework and the ClientScript class doesn't exist.

Other suggestions?
Aug 22 '07 #3
Walter,

Thanks so much for your help with this. That handles just what I need very
nicely.

I'm beginning to think that my studies into asp.net should probably also
include a sprinkling of Java.
Aug 22 '07 #4
Walter,

In using this initially it appears to work, however I've hit a limitation of
the implementation in testing. In my mailto string I include the email
address, subject line and body of the email.

The problem I'm running into is for some reason the body portion is only
passing the first 100 characters. I need around double that.
Aug 22 '07 #5
Found the problem here --- not a size limitation, but rather a rookie
mistake. A part of the body that I am populating includes and & character
in a url. Once I swapped out the & for the hex value of /26 all works fine.

"Matt F" <mf****************@nospam.nospamwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
Walter,

In using this initially it appears to work, however I've hit a limitation
of the implementation in testing. In my mailto string I include the email
address, subject line and body of the email.

The problem I'm running into is for some reason the body portion is only
passing the first 100 characters. I need around double that.

Aug 22 '07 #6
Hi Matt,

I'm glad the issue is not solved.

Thank you for using MSDN Managed Newsgroup support service!
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 23 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Peter Bassett | last post by:
I have a recruiter website listing jobs. Some postings having email links directly to the employer (instead of the usual email link to the recruiter owner). The owner wishes to track when people...
9
by: Rick Cook | last post by:
I would like to do a response form on one of my sites instead of posting an e-mail address for spammers. I've taken a couple of examples from sites, but the code looks clunky and non-conformant to...
10
by: Adam Smith | last post by:
How can I set up a mailto with a cc or bcc as well as a subject designation. The system works for two but not three, is this a hardwired limit or have I missed something ==> <a...
2
by: Jason Huang | last post by:
Hi, Kind of spending too much time on the no-cache issue and found out something like <% Response.CacheControl = "no-cache" %>. In my ASP.Net, a C# .aspx file, where do I put the <%...
8
by: Scott C. Reynolds | last post by:
I want to serve a PDF right to a web page (cannot link browser directly to PDF file). Stumbled across Response.WriteFile this morning. On my machine (XP Pro) this worked fine: private void...
1
by: Sean Wolfe | last post by:
I have this wierd bizarrre problem that I'm experienceing with the Response.Redirect() method. I have a site where the users are on a particular page in SSL. When they post the data back, and...
5
by: wptpro | last post by:
I need to create an aspx page that returns a data string with no html code. In ASP it would be easy by not including any HTML code and then doing a repsonse.write "my data string". How do i do...
2
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
Hi, I want to create a mailto link from data coming from an SQLDataSource. How do I have to change the following code to get it working? The mailto works, outlook starts with a new message, but...
2
by: Dale Harris | last post by:
Hi, I was wondering, is there a difference between Server.Transfer and Response.Redirect? They seem to do the same thing. Or am I mistaken? TIA ** Posted from http://www.teranews.com **
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.