473,401 Members | 2,125 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,401 software developers and data experts.

e-mail from textbox and datagrid controls.

Hi all,

I currently have a task that calls to send an e-mail from a textbox, and
a field of a datagrid. When I send it from the multiline textbox, I notice
that
the text is sent as a single line, even though I try to send it to include
the
new line breaks. Is there any way to make the text in my e-mail to follow
the format of the textbox ?

The other question is what is the best way to display the e-mail addresses
in a datagrid column, and this addresses being aable to have a hyperlink
to connect to the user's e-mail client, so that an e-mail can be created and
sent to the value displayed in the column...

Thanks in advance,

Carlos.
Dec 5 '05 #1
1 996
Since this is a one way databind, you would definately use a templated
field by specifying <a href="mailto:<%# DataBinder... %>></a>, or do
the same with the LinkButton or even HyperLink controls. Just make
sure it has mailto: infront...

You may want to check to see if you are sending the email as text or
HTML. You will want to explicitly state what you want.

Dec 5 '05 #2

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

Similar topics

7
by: _e_ | last post by:
I'm trying to set custom widths and headings for DataGrid columns, but they keep displaying as defaults. I did configure the params via the TableStyles collection -> ColumnStyles collection. ...
2
by: Bonj | last post by:
When handling the datagrid's OnEditCommand handler, the DataGridCommandEventArgs has an Item property, which has a collection of controls. One of these contains three subcontrols, the middle one...
3
by: Ricardo Corsi P. Cesar | last post by:
I have many textbox in my webform, but i want clear all of them with on single step. Someone have the code ? Thks
1
by: Dave Tichenor | last post by:
how to you email a datagrid as a html email message. this is what i have Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Create...
2
by: 2obvious | last post by:
Below is a cut-and-paste code example that runs. It demonstrates some results which confuse me. It uses a DataGrid to make a table with 12 rows, each containing a TextBox and a CustomValidator....
0
by: The Colonel | last post by:
What's the best way to enumerate datagrid controls to build a SQL statement for updates and inserts?
1
by: Raed Sawalha | last post by:
i have aspx page with user control containing a datagrid , the datagrid has TempleteColumn with checkbox in header and item ( doing multiselect task) I wondering how Can get the checkboxes status...
1
by: RemaChenthil | last post by:
Hello, I have a datagrid which has textbox controls. In the save button (not in the datagrid) I have to do validation for these controls in DataGrid. My question is how to pass this control name...
4
by: tshad | last post by:
I need to do some work with Javascript and my datagrid controls. I want to do something like: ********************************************************* function CheckQuestion() { var checkBox...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.