MailTo Hyperlink in Gridview

S

Stuart Ferguson

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
 
S

Stuart Ferguson

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top