Dynamic Tooltip

Posted on 2007-07-20
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
    LVL 96

    Expert Comment

    by:Bob Learned

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



    Author Comment

    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

    You can't mix quotes:

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


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    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…
    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video discusses moving either the default database or any database to a new volume.

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now