473,468 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

mailto on hyperlink control

I have a hyperlink control for which the text property is the xx*@xxx.com
address in a db field. I want to display this and set the NavigateURL field
of the control to the same field (with a "mailto:" prefix) in order to
activate the mailto link; I'm getting errors where I try to put the mailto
into the control coding. Am I going about this wrong or is there a way to do
this inside the hyperlink control's NavigateURL property?
Rod
Nov 18 '05 #1
2 2404
Rod,
I'm guessing that you are doing this in a repeater/grid/list with a
DataBind()

NavigateUrl='<%# "mailto:" + DataBinder.Eval(Container.DataItem, "Email"))
%>' should work??

Karl

"Rod Snyder" <ro*@rcsnyder.com> wrote in message
news:ew**************@TK2MSFTNGP09.phx.gbl...
I have a hyperlink control for which the text property is the xx*@xxx.com
address in a db field. I want to display this and set the NavigateURL field of the control to the same field (with a "mailto:" prefix) in order to
activate the mailto link; I'm getting errors where I try to put the mailto
into the control coding. Am I going about this wrong or is there a way to do this inside the hyperlink control's NavigateURL property?
Rod

Nov 18 '05 #2
Actually, I was trying to do this with a hyperlink control and the format
doesn't seem to work.
Rod

"Karl" <none> wrote in message
news:OX****************@tk2msftngp13.phx.gbl...
Rod,
I'm guessing that you are doing this in a repeater/grid/list with a
DataBind()

NavigateUrl='<%# "mailto:" + DataBinder.Eval(Container.DataItem, "Email"))
%>' should work??

Karl

"Rod Snyder" <ro*@rcsnyder.com> wrote in message
news:ew**************@TK2MSFTNGP09.phx.gbl...
I have a hyperlink control for which the text property is the xx*@xxx.com address in a db field. I want to display this and set the NavigateURL field
of the control to the same field (with a "mailto:" prefix) in order to
activate the mailto link; I'm getting errors where I try to put the mailto into the control coding. Am I going about this wrong or is there a way

to do
this inside the hyperlink control's NavigateURL property?
Rod


Nov 18 '05 #3

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

Similar topics

3
by: Richard | last post by:
Hi I am trying to place an e-mail link into a cell of an Access 2002 table. Have tried setting the cell as both a hyperlink and as plain text and putting the following into the box: <a...
4
by: Tero Partanen | last post by:
Hello! I'm writing about a rather peculiar problem I'm having with Access2000. I have a table in which I have created one hyperlink-type field. I have given the field a default value which is...
2
by: Marcial | last post by:
Hello, I have a ASP.NET 2.0 coding issue I need help with. I have a Gridview which displays the Name and e-mail address columns of an underlying SQL datasource. I added a hyperlink field to...
2
by: Paolo | last post by:
While it is not a problem to create a mailto link in HTML, <a href= "mailto: <%# Databinder.Eval(Container.DataItem,"StoreEmail") %>" ><%#DataBinder.Eval(Container.DataItem,...
3
by: smHaig | last post by:
Not being an web programmer I am unable to figure out how to put the hyperlink mailto:emailaddress in a button click event. I do not want a hyperlink on the form. I have found nothing to address...
2
by: Arvan | last post by:
hi,all. i wanna use Eval("DataField") to bind datarow in item template of GridView. for example: <asp:Label runat="server" id="Label1" text='<%# Eval("DataField") %>'><asp:Label> but how...
2
by: Ron | last post by:
I have the following control in mailtowebmaster.acsx <%@ Control Language="VB" AutoEventWireup="false" ClassName="MailtoWebmaster" %> <%@ Register tagPrefix="Club" Namespace="ClubSite" %> ...
5
by: Joh | last post by:
I'm using mailto to open up an email that have a hyperlink in the body. The hyperlink passes two variables Name and Emailadress. The problem is that only the first variable Name show up in the...
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...
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
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
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,...
1
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...
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.