Click here to Skip to main content
15,911,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iam work on asp.net and i want generate link <a> contains

i make all ways but image not clickable can any one help me ...

image display but not click .

[edit]HTML tag encoded - OriginalGriff[/edit]

What I have tried:

C#
sbOrder.AppendLine("<td  >");
           sbOrder.AppendLine("<a href='" + "http" +"' target='_blank'><img width='243px'  src='" + "http...." + "images/LogoPDF.png' alt='Logo' /></a>");
           sbOrder.AppendLine("<br>");
           sbOrder.AppendLine("</td>");
Posted
Updated 6-Dec-16 0:27am
v3
Comments
F-ES Sitecore 5-Dec-16 3:56am    
From the code you've posted it's not a valid link.
ÂĦmâd Ŝâlâĥ 14-Dec-16 4:51am    
yes just exp

You need to set href to something valid. Also, look at sbOrder.ToString() and make sure it is valid html.
 
Share this answer
 
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900