大家好, 我正在使用选择页面,用户可以在其中选择类别和子类别.然后根据该选择,用户在网格中显示一些文档,一行显示一个文档. 例如根据该选择有五个文档,它显示五个网格行. 所以我想显示该文档的工具提示.我想证明那个文件附加的时间. 因此,如何根据该选择显示工具提示. 我用:
< asp:TemplateField HeaderText =" 标题" > < itemtemplate > < asp:Label ID =" Label2" runat =" 服务器" 文本 =' <% #Eval(" 标题" )%>' 可见 =" false" > < asp:LinkButton ID =" link1" runat =" 服务器" CommandName =" 链接" ForeColor =" 蓝色" > <% #Eval(" 标题" )%> < /itemtemplate > < 项目 样式 forecolor =" 蓝色" 字体大小 =" 媒体" / >请帮帮我. 谢谢和问候.. Mitesh
解决方案尝试: < asp:LinkButton ID =" link1" runat =" 服务器" CommandName =" 链接" 文本 =' <% #Eval(" 标题")%>' ForeColor =" 蓝色" 工具提示 =' <%#string.Format(" 文档附在:{0}" ,Eval(" TimeStamp")%>' > < /asp:LinkButton >
hello to all, i am using the selection page in which user select category and subcategory. then according to that selection user display some document in grid one document in one row. e.g. there are five documents according to that selection, it display five grid row. so i want to display tooltip for that documents. i want to show that which time that document attached. so, how can i display tooltip according to that selection. i use :
<asp:TemplateField HeaderText="Title"> <itemtemplate> <asp:Label ID="Label2" runat="server" Text='<%#Eval("title")%>' Visible="false"> <asp:LinkButton ID="link1" runat="server" CommandName="link" ForeColor="Blue"><%#Eval("title")%> </itemtemplate> <itemstyle forecolor="Blue" font-size="Medium" />Please Help me. Thanks and Regards.. Mitesh
解决方案 Try: <asp:LinkButton ID="link1" runat="server" CommandName="link" Text='<%#Eval("title")%>' ForeColor="Blue" tooltip='<%# string.Format("Document attached at: {0}", Eval("TimeStamp") %>'> </asp:LinkButton>更多推荐
网格中的工具提示,用于显示数据库中的日期时间
发布评论