C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » .NET Framework »

ASP.NET HyperLink & Mailto In Details View


Posted Date: 31 Aug 2007    Resource Type: Articles    Category: .NET Framework
Author: KamalMember Level: Gold    
Rating: 1 out of 5Points: 10



First Try Out this below Hyperlink and watch Out Put :

<asp:HyperLink NavigateUrl="mailto:" Text=’< %# Bind(”Email”) % >‘ runat=”server” ID=”hlEmail”/ >

This leaves a hyperlink but with a blank mailto - i.e. test@techtoolblog.com

So I assume if I stick in the bind (or eval) text to the Navigate URL we should be good to go:

<asp:HyperLink NavigateUrl=’mailto:< %# Bind(”Email”) % >‘ Text=’< %# Bind(”Email”) % >‘ runat=”server” ID=”hlEmail”/ >


This gives me a link that is NOT clickable.

My next guess is that this has something to do with formatting string, sure enough it is: This is the solution that ended up working for me:


<asp:HyperLink NavigateUrl=’< %# Bind(”Email”, “mailto:{0}”) % >‘ Text=’< %# Bind(”Email”) % >‘ runat=”server” ID=”hlEmail”/ >



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Precompiling ASP.NET 2.0 websites
Previous Resource: String Concatenation in ASP.NET
Return to Discussion Resource Index
Post New Resource
Category: .NET Framework


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use