Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Text in tooltip bound field bridview

Posted on 2016-10-12
3
Medium Priority
?
89 Views
Last Modified: 2016-10-17
How do I add text to gridview template boundfields
eg
  <asp:CheckBox ID="chkPFRequired" runat="server" Checked='<%# Bind("PF_REQUIRED") %>' Enabled="false" ToolTip='<%# Bind("PDM_PASSED_TO_TL")%>' />

Open in new window


Ideally, what I want to do is have 2 separate bound values and some text in the same tooltip.

Eg

 ToolTip=" passed to " + '<%# Bind("PDM_PASSED_TO_TL")%>' + "ON" +'<%# Bind("2ND BOUND FIELD")%>'   />
0
Comment
Question by:Ed
  • 2
3 Comments
 

Author Comment

by:Ed
ID: 41839816
OK, I've part solved it.

But would still like to hardcode text into this...
ToolTip='<%#Eval("PDM_PASSED_TO_TL").ToString() + ", " + Eval("PDM_TO_TL_COMPLETED_DATESTAMP").ToString() %>'

Open in new window

0
 
LVL 21

Accepted Solution

by:
Tapan Pattanaik earned 2000 total points
ID: 41840455
Hi edjones1,

You can replace the value "PDM_PASSED_TO_TL" and "PDM_TO_TL_COMPLETED_DATESTAMP" to database field name.

ToolTip='<%# string.Concat(Eval("PDM_PASSED_TO_TL"), " ,", Eval("PDM_TO_TL_COMPLETED_DATESTAMP"))%>'

Example:
ToolTip='<%# string.Concat(Eval("FirstName"), " ", Eval("LastName"))%>'

Regards,
Tapan Pattanaik
0
 

Author Closing Comment

by:Ed
ID: 41846456
Perfect, Thanks
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2
Suggested Courses

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question