Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Text in tooltip bound field bridview

Posted on 2016-10-12
3
Medium Priority
?
76 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

722 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