网格中的工具提示,用于显示数据库中的日期时间

编程入门 行业动态 更新时间:2024-10-24 10:20:30
本文介绍了网格中的工具提示,用于显示数据库中的日期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我正在使用选择页面,用户可以在其中选择类别和子类别.然后根据该选择,用户在网格中显示一些文档,一行显示一个文档. 例如根据该选择有五个文档,它显示五个网格行. 所以我想显示该文档的工具提示.我想证明那个文件附加的时间. 因此,如何根据该选择显示工具提示. 我用:

< asp:TemplateField HeaderText =" 标题" 请帮帮我. 谢谢和问候.. Mitesh

解决方案

尝试:

< asp:LinkBut​​ton ID =" link1"

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>

更多推荐

网格中的工具提示,用于显示数据库中的日期时间

本文发布于:2023-11-22 23:27:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619333.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网格   数据库中   提示   日期   时间

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!