By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,037 Members | 2,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,037 IT Pros & Developers. It's quick & easy.

Emulate HREF Mailto: in a form

P: n/a
I'm have a form with a datagrid showing a checkbox for each row. I want the
user to be able to click a checkbox and then click a button that sends an
email similar to how the HREF MailTo: works. I can't embed the MailTo: in
the webpage b/c the button has to determine which row has a checkbox, pull
data from SQL and then build the email content. I originally wrote the code
using System.Web.Mail classes but the client doesn't like it b/c they want
each user's own email app to open so they can modify the email and
add/remove recipients. One option is to have an Href link on each row of the
table that they can click on, but this results in lots of data manipulation
as well as tons of excess HTML on the page.

Does anyone know how to emulate the HREF MailTo: functionality in an ASP.NET
page so I can create the link dynamically and let the browser control
opening the user's default email program with the data filled in already
from this dynamic HREF link?

Thanks,

Brian
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
you'll have to pass it to the client

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Brian Bischof" <Br***@NoSpamBischofSystems.com> wrote in message
news:OV****************@TK2MSFTNGP11.phx.gbl...
I'm have a form with a datagrid showing a checkbox for each row. I want
the
user to be able to click a checkbox and then click a button that sends an
email similar to how the HREF MailTo: works. I can't embed the MailTo: in
the webpage b/c the button has to determine which row has a checkbox, pull
data from SQL and then build the email content. I originally wrote the
code
using System.Web.Mail classes but the client doesn't like it b/c they want
each user's own email app to open so they can modify the email and
add/remove recipients. One option is to have an Href link on each row of
the
table that they can click on, but this results in lots of data
manipulation
as well as tons of excess HTML on the page.

Does anyone know how to emulate the HREF MailTo: functionality in an
ASP.NET
page so I can create the link dynamically and let the browser control
opening the user's default email program with the data filled in already
from this dynamic HREF link?

Thanks,

Brian

Nov 19 '05 #2

P: n/a
Can you give me a little more info? Pass it to the client using JavaScript?
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:O5***************@TK2MSFTNGP09.phx.gbl...
you'll have to pass it to the client

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Brian Bischof" <Br***@NoSpamBischofSystems.com> wrote in message
news:OV****************@TK2MSFTNGP11.phx.gbl...
I'm have a form with a datagrid showing a checkbox for each row. I want
the
user to be able to click a checkbox and then click a button that sends an email similar to how the HREF MailTo: works. I can't embed the MailTo: in the webpage b/c the button has to determine which row has a checkbox, pull data from SQL and then build the email content. I originally wrote the
code
using System.Web.Mail classes but the client doesn't like it b/c they want each user's own email app to open so they can modify the email and
add/remove recipients. One option is to have an Href link on each row of
the
table that they can click on, but this results in lots of data
manipulation
as well as tons of excess HTML on the page.

Does anyone know how to emulate the HREF MailTo: functionality in an
ASP.NET
page so I can create the link dynamically and let the browser control
opening the user's default email program with the data filled in already
from this dynamic HREF link?

Thanks,

Brian


Nov 19 '05 #3

P: n/a
Here is what I've done so far. It's a hack, but I'm hoping they will accept
it unless someone here posts something better.

I have the button pass the email info to another page which simply displays
the Subject and Body info on the screen. I say something like, "Click on the
link below to send the following email" and I also hardcode the link to be
the Href:EmailTo info that was passed from the previous page. This lets me
build a single href link in code prior to displaying the page so the user so
they can click on it like a regular link.

HTH,

Brian

"Brian Bischof" <Br***@NoSpamBischofSystems.com> wrote in message
news:u4****************@TK2MSFTNGP09.phx.gbl...
Can you give me a little more info? Pass it to the client using JavaScript?

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:O5***************@TK2MSFTNGP09.phx.gbl...
you'll have to pass it to the client

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Brian Bischof" <Br***@NoSpamBischofSystems.com> wrote in message
news:OV****************@TK2MSFTNGP11.phx.gbl...
I'm have a form with a datagrid showing a checkbox for each row. I want the
user to be able to click a checkbox and then click a button that sends an email similar to how the HREF MailTo: works. I can't embed the MailTo: in the webpage b/c the button has to determine which row has a checkbox, pull data from SQL and then build the email content. I originally wrote the
code
using System.Web.Mail classes but the client doesn't like it b/c they want each user's own email app to open so they can modify the email and
add/remove recipients. One option is to have an Href link on each row of the
table that they can click on, but this results in lots of data
manipulation
as well as tons of excess HTML on the page.

Does anyone know how to emulate the HREF MailTo: functionality in an
ASP.NET
page so I can create the link dynamically and let the browser control
opening the user's default email program with the data filled in already from this dynamic HREF link?

Thanks,

Brian



Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.