0

是否可以在命令字段的图像按钮上设置标题属性?

 <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" />
4

3 回答 3

0

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

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

于 2010-01-14T13:05:22.147 回答
0

当您说标题时,您的意思是 HeaderText ???

<asp:CommandField ShowEditButton="True" HeaderText="Testing" />
于 2010-01-13T16:43:16.643 回答
0

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

<asp:CommandField DeleteText="<i aria-hidden='true' title='Delete Role' class='glyphicon glyphicon-trash'>" ShowDeleteButton="True"/>
于 2020-03-11T11:13:31.757 回答