i am trying to display image in buttonfield in gridview, but it is not displaying
<asp:ButtonField CommandName="Select" ControlStyle-ForeColor="Red" HeaderText="Action" ItemStyle-Width="150" ImageUrl="~/Employee/images/pencil.png" />
Hi akhter,
You need to set the ButtonField ButtonType to Image inorder to display the image.
<asp:ButtonField ButtonType="Image" CommandName="Select" ControlStyle-ForeColor="Red" HeaderText="Action" ItemStyle-Width="150" ImageUrl="~/Employee/images/pencil.png" />
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.