473,785 Members | 2,275 Online
Bytes | Software Development & Data Engineering Community
+ 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 2441
Rod,
I'm guessing that you are doing this in a repeater/grid/list with a
DataBind()

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

Karl

"Rod Snyder" <ro*@rcsnyder.c om> wrote in message
news:ew******** ******@TK2MSFTN GP09.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******** ********@tk2msf tngp13.phx.gbl. ..
Rod,
I'm guessing that you are doing this in a repeater/grid/list with a
DataBind()

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

Karl

"Rod Snyder" <ro*@rcsnyder.c om> wrote in message
news:ew******** ******@TK2MSFTN GP09.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
5293
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 href="Mailto:UserID12345@mysite.com">SEND EMAIL</A> Neither way will give me a link in the results page of a search of this table - it just shows it as text. How do I go about this? Each recordset has a unique e-mail address. Thanks in advance
4
7465
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 an email-address. The default value is (for example): "mailto:mymail@here.com". Access2000 correctly inserts that information into the field everytime
2
3670
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 the columns collection. I'm trying to figure out how to send an email after the email address link
2
3926
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, "StoreEmail")%></a> I would like to do so using an ASP.Net 2. 0 hyperlink, or some other control (in Visual Web Developer 2005). What is the best way to do so?
3
18972
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 this. using response.redirect is not the answer because you do not return to the page with the button on it. Also, is it necessary to encode the address and if yes, how to do that, please Thanks. I am sure this is very simple but I am a windows...
2
10342
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 to use eval with control HyperLink?
2
5700
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" %> <div id="MailtoWebmaster"> <asp:HyperLink ID="Mailto" runat="server" NavigateUrl="mailto:x@y.com" </div>
5
5663
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 hyperlink. It seems that javascript takes the & as the end of the body where I use it to separate my variables. Anyone know how to deal with this? "<script...
2
6328
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 the email address has not been filled in because I don’t know how to pass the email variable into the mailto command. <asp:HyperLink runat="server"> <A href="mailto:">
0
10357
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10162
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10101
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9959
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7509
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4063
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 we have to send another system
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.