网格中的工具提示,用于显示数据库中的日期时间 [英] ToolTip in grid for display datetime from Database

查看:149
本文介绍了网格中的工具提示,用于显示数据库中的日期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用选择页面,用户可以在其中选择类别和子类别.然后根据该选择,用户在网格中显示一些文档,一行显示一个文档.

例如根据该选择有五个文档,它显示五个网格行.

所以我想显示该文档的工具提示.我想证明那个文件附加的时间.

因此,如何根据该选择显示工具提示.

我用:

 <   asp:TemplateField     HeaderText   ="  > 
      <   itemtemplate  > 
          <   asp:Label     ID   ="   runat   服务器" 文本  <% #Eval(" )%>'   可见  ="  > 
           <   asp:LinkBut​​ton     ID   ="   runat   服务器"    ="     ="  蓝色" >  <% #Eval(" )%>
      <  /itemtemplate  > 

          <  项目 样式    forecolor   =" 蓝色"    字体大小  =" 媒体" / > 





请帮帮我.

谢谢和问候..
Mitesh

解决方案

尝试:

 <   asp:LinkBut​​ton     ID   ="     runat   =" 服务器"    CommandName   ="    文本  ='  "  标题")%>'    ForeColor   =" 蓝色" 工具提示  ='  <%#string.Format(" ,Eval("  TimeStamp")%>' <  >  


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>


这篇关于网格中的工具提示,用于显示数据库中的日期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆