• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 533
  • Last Modified:

Dynamic Tooltip

Ok - this is a dumb one - how to I append hardcoded values to the a tooltip in my datalist (for a linkbutton) - right now it is: ToolTip='<%# Eval("ContentName") %>'

What I want is something like - "click here to nav to <%# Eval("ContentName") %>"
0
tbaseflug
Asked:
tbaseflug
  • 2
1 Solution
 
Bob LearnedCommented:
Untested:

<%# 'click here to nav to' + Eval("ContentName") %>"

Bob

0
 
tbaseflugAuthor Commented:
Here is what I have now and it is throwing the "server tag not well formed" error:

ToolTip='<%#'click here to nav to' + Eval("ContentName") %>'
0
 
Bob LearnedCommented:
You can't mix quotes:

ToolTip='<%# "click here to nav to" + Eval("ContentName") %>'

Bob
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now