Click here to Skip to main content
15,905,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have no idea on how to add an image to CommandField in GridView.

The is my code:
ASP.NET
<asp:CommandField ButtonType ="Link" HeaderText= "Delete" DeleteText="<img src='~/Images/Delete.jpg' alt='Delete' />"  ShowDeleteButton="true" />
Posted
Updated 3-Mar-12 0:58am
v2
Comments
André Kraak 3-Mar-12 6:58am    
Edited question:
Added pre tags
Formatted text/code
Spelling/Grammar

1 solution

 
Share this answer
 
Comments
Madhugundi 3-Mar-12 6:31am    
Thank you
Abhinav S 3-Mar-12 9:02am    
You are welcome. Vote if it helped.

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