Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.NET
<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
Posted
Updated 15-Jun-12 18:56pm
v3
Comments
Clifford Nelson 16-Jun-12 0:47am    
You need to tell us the environment: ASP, WPF, WinFOrm, and probably be more specific about the grid technology.
[no name] 16-Jun-12 0:52am    
asp.net with c#
Ganesan Senthilvel 16-Jun-12 0:57am    
code format
[no name] 16-Jun-12 1:02am    
want to tooltip into linkbutton.

1 solution

Try:
ASP.NET
<asp:LinkButton ID="link1" runat="server"  CommandName="link" Text='<%#Eval("title")%>' ForeColor="Blue" tooltip='<%# string.Format("Document attached at: {0}", Eval("TimeStamp") %>'> </asp:LinkButton>
 
Share this answer
 
v2
Comments
[no name] 16-Jun-12 2:08am    
dear Sandeep, what i write instead of '<% string.Format("Document attached at: {0}", Eval("TimeStamp") %>'>.
please tell me.. i not understand...
Sandeep Mewara 16-Jun-12 2:24am    
1. There is a property ToolTip that can be used
2. You can use Eval to directly bind a field from Db to it
3. If it's a static field, use that.

Now, after all these details and sample, I am not sure on what is left to be told.
[no name] 16-Jun-12 2:40am    
thanks brother. it done by using Eval function but i want also add Some static string before Eval in tooltip . so how can i add ?
Sandeep Mewara 16-Jun-12 3:23am    
My sample shows EXACTLY what you want. :doh:
[no name] 16-Jun-12 3:44am    
but it display as Exact that string like string.Format("Document attached at: {0}", Eval("TimeStamp") in tooltip at runtime.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900