Asp.net commandfield在图像上放置标题属性按钮

Asp.net commandfield在图像上放置标题属性按钮,asp.net,commandfield,Asp.net,Commandfield,可以在commandfield的图像按钮上设置title attibute吗 <asp:CommandField ShowDeleteButton="True" ButtonType="Image" ShowEditButton="True" DeleteImageUrl="images/BPAnn.gif" EditImageUrl="images/edit.gif" DeleteText="Elimina" Edit

可以在commandfield的图像按钮上设置title attibute吗

 <asp:CommandField ShowDeleteButton="True" ButtonType="Image"  ShowEditButton="True" 
                                DeleteImageUrl="images/BPAnn.gif" EditImageUrl="images/edit.gif" DeleteText="Elimina" EditText="Modifica"
                                UpdateImageUrl="images/apply.gif" CancelImageUrl="images/undo.gif" />

当你说Title时,你是指HeaderText

<asp:CommandField ShowEditButton="True" HeaderText="Testing" />

如果您想要工具提示,我的建议是将CommandField转换为TemplateField


在模板字段中,您可以使用更多选项。

如果有人需要,您可以对任何命令执行此操作。此处完成删除操作:

<asp:CommandField DeleteText="<i aria-hidden='true' title='Delete Role' class='glyphicon glyphicon-trash'>" ShowDeleteButton="True"/>

对不起,我想要按钮上的工具提示