Appending Text To <%# Eval("...") %> In HTML?

Discussion in 'ASP .Net' started by clintonG, Jan 22, 2007.

  1. clintonG

    clintonG Guest

    Duh.
    I tried several syntactical character combinations but I can't seem to
    figure out the syntax to extend the use of <%# Eval("...") %> when used
    inline as a ToolTip so as to append pre-fixed and post-fixed text with the
    data that is returned by the expression.

    // Returns: Scott
    ToolTip='<%# Eval("MiddleName") %>'

    // Need: Clinton Scott Gallagher
    ToolTip="Clinton <%# Eval("MiddleName") %> Gallagher"


    <%= Clinton Gallagher
    NET csgallagher AT metromilwaukee.com
    URL http://clintongallagher.metromilwaukee.com/
    MAP http://wikimapia.org/#y=43038073&x=-88043838&z=17&l=0&m=h
    clintonG, Jan 22, 2007
    #1
    1. Advertising

  2. clintonG

    bruce barker Guest

    ToolTip='<%# "Clinton" + Eval("MiddleName") + "Gallagher"%>'


    clintonG wrote:
    > Duh.
    > I tried several syntactical character combinations but I can't seem to
    > figure out the syntax to extend the use of <%# Eval("...") %> when used
    > inline as a ToolTip so as to append pre-fixed and post-fixed text with the
    > data that is returned by the expression.
    >
    > // Returns: Scott
    > ToolTip='<%# Eval("MiddleName") %>'
    >
    > // Need: Clinton Scott Gallagher
    > ToolTip="Clinton <%# Eval("MiddleName") %> Gallagher"
    >
    >
    > <%= Clinton Gallagher
    > NET csgallagher AT metromilwaukee.com
    > URL http://clintongallagher.metromilwaukee.com/
    > MAP http://wikimapia.org/#y=43038073&x=-88043838&z=17&l=0&m=h
    >
    >
    bruce barker, Jan 22, 2007
    #2
    1. Advertising

  3. clintonG

    clintonG Guest

    I thought I tried that but clearly didn't get it right.
    I sheepishly stand in your shadow :)

    <%= Clinton

    "bruce barker" <> wrote in message
    news:%...
    >
    > ToolTip='<%# "Clinton" + Eval("MiddleName") + "Gallagher"%>'
    >
    >
    > clintonG wrote:
    >> Duh.
    >> I tried several syntactical character combinations but I can't seem to
    >> figure out the syntax to extend the use of <%# Eval("...") %> when used
    >> inline as a ToolTip so as to append pre-fixed and post-fixed text with
    >> the data that is returned by the expression.
    >>
    >> // Returns: Scott
    >> ToolTip='<%# Eval("MiddleName") %>'
    >>
    >> // Need: Clinton Scott Gallagher
    >> ToolTip="Clinton <%# Eval("MiddleName") %> Gallagher"
    >>
    >>
    >> <%= Clinton Gallagher
    >> NET csgallagher AT metromilwaukee.com
    >> URL http://clintongallagher.metromilwaukee.com/
    >> MAP http://wikimapia.org/#y=43038073&x=-88043838&z=17&l=0&m=h
    clintonG, Jan 22, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric Newton
    Replies:
    3
    Views:
    9,355
    Brock Allen
    Apr 4, 2005
  2. Tom
    Replies:
    7
    Views:
    431
    William Desrochers
    Sep 9, 2004
  3. DataBinder.Eval and Eval.

    , Jun 16, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    523
    Karl Seguin [MVP]
    Jun 16, 2006
  4. Alex van der Spek

    eval('07') works, eval('08') fails, why?

    Alex van der Spek, Jan 8, 2009, in forum: Python
    Replies:
    6
    Views:
    1,404
    Bruno Desthuilliers
    Jan 8, 2009
  5. Liang Wang
    Replies:
    8
    Views:
    124
    Ben Morrow
    Feb 2, 2008
Loading...

Share This Page