Dynamic Tooltip

Posted on 2007-07-20
Medium Priority
Last Modified: 2008-03-04
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") %>"
Question by:tbaseflug
  • 2
LVL 96

Expert Comment

by:Bob Learned
ID: 19530660

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



Author Comment

ID: 19530679
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") %>'
LVL 96

Accepted Solution

Bob Learned earned 200 total points
ID: 19531241
You can't mix quotes:

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


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

862 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