在绑定在GridView列中的图像控件中,我可以通过使用DataAlternateTextField
属性来设置Alt文本属性。我应该使用哪种属性或方法将ToolTip属性绑定到ImageField类?
<asp:ImageField DataImageUrlField="Flag"
DataImageUrlFormatString="~/images/f/{0}.png"
DataAlternateTextField="Description" >
</asp:ImageField>
导致somathing像...
<img src="1.png" alt="Alt text"/>
我应该使用哪种属性或方法工具提示属性绑定?
<img src="1.png" alt="Alt text" ToolTip="Title text" />
我想网站的用户,在图像的鼠标悬停到能够读取标题属性。
这意味着我必须首先将图像转换为ItemTemplate? – OrElse 2012-01-08 19:07:42
是的,如果它是GridView或其他控件的一部分,如我所想:) – Veronica 2012-01-08 19:09:46