Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlink in detailsview?

Status
Not open for further replies.

ZmrAbdulla

Technical User
Apr 22, 2003
4,364
AE
Is that possible to create a hyperlink in the "DetailsView"? My aspx page shows the details of employee including email id. Now it displays as text without hyperlink.
I need it to be displayed as hyperlink for user to click on the mail id to open their default email client.

thanks

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Yes it is. You can create a HyperLinkField and set the relevant properties for it e.g.
Code:
<asp:DetailsView ID="myDetailsView" runat="server">
<Fields>
    <asp:HyperLinkField ... />
</Fields>
</asp:DetailsView>
For more info see:



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Thanks for that... still I am struggling with it.
here is my code that displays as a link.. obviously searching for a page. Tried many combination still no success.

Code:
.............
<asp:HyperLinkField  
	DataTextField="Email" 
	NavigateUrl="mailto:"   
	DataNavigateUrlFields="Email" 
	HeaderText="Email :" >                 
</asp:HyperLinkField >
..............




________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
At a guess, try something like:
Code:
<asp:HyperLinkField
  DataTextField="Email"
  DataNavigateUrlFields="Email"
  DataNavigateUrlFormatString="mailto:{0}"          
  HeaderText="Email"
/>

If not, have a look at the MSDN article for the HyperLinkField which should go into better detail:




____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
No.. we are missing something..

I have already read that articles and some on the web none of them showing how to do the email link. let me go for more search.

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top