473,396 Members | 1,933 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,396 software developers and data experts.

MailTo Hyperlink in Gridview

I am currently writing an application in ASP.Net which has a bound
Gridview however i require to add a column with a mailto link in it.
After many questions in the c# IRC room it was decided that a templat
column was the best way which i have put in and the basic mailto a bound
address is file however i want to add to the mailto link a subject and
some other info, how do i go about this? I know how its done in standard
HTML but in this case i am using the binding of the Hyperlink and im not
sure how to do it using the DataBinder expressions. Any help is
appreciated.

Many Thanks In Advance

Stuart

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
4 2980
Hi,
Check out this sample.. I created and used a hyperlink template here.. Hope
this helps you. In case you need more help please get back to me..
http://www.expertszone.com/samples/templatecolumn.zip
--
The best
srini
http://www.expertszone.com
"Stuart Ferguson" wrote:
I am currently writing an application in ASP.Net which has a bound
Gridview however i require to add a column with a mailto link in it.
After many questions in the c# IRC room it was decided that a templat
column was the best way which i have put in and the basic mailto a bound
address is file however i want to add to the mailto link a subject and
some other info, how do i go about this? I know how its done in standard
HTML but in this case i am using the binding of the Hyperlink and im not
sure how to do it using the DataBinder expressions. Any help is
appreciated.

Many Thanks In Advance

Stuart

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #2
Thanks for answering so quickly srini.

WIll this example be valid for ASP.NET 2.0 (shud have mentioned this in
original question)

Best Wishes

Stuart

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3
Hi,
I didnt check on ASP.Net 2.0 but it should work without any problem.. just
use the code in the webform1.aspx.cs if u have problems opening or running
the project.

--
HTH
srini
http://www.expertszone.com
"Stuart Ferguson" wrote:
Thanks for answering so quickly srini.

WIll this example be valid for ASP.NET 2.0 (shud have mentioned this in
original question)

Best Wishes

Stuart

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #4
Dont seem to work in ASP.Net 2.0 :( anyone have a way in 2.0 ?
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #5

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

Similar topics

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...
3
by: mcse4u | last post by:
I would like to be able to add a hyperlink to the posted form below that automatically creates a hyperlink of the email address of the person submitting the form. Can someone please help me with...
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: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
1
by: willip | last post by:
I have a Gridview control with a Databound Hyperlink. e.g.: <asp:HyperLinkField HeaderText="MyTitle" DataNavigateUrlFields="MyID" DataNavigateUrlFormatString="~/ShowMe.aspx?MyID={0}"...
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...
5
by: luxyboy | last post by:
Hi all, Firstly many thanks for taking the time to look at this. I have writing a small address book for my contacts and one of the fields i store is the email address. I use a text box with a...
1
by: Author | last post by:
I got into trouble with this problem. The data I am presenting in a GridView control has a column called "Website". That data comes from a stored procedure in SQL Server 2000. Most of them...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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,...
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...
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,...

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.