Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ToolTip with text + databinder.eval

how can I add a tooltip to a asp:label with a value from the DB plus a text?

I currently have

Tooltip= '<%# DataBinder.Eval(Container.DataItem, "ID") %> '

and it is successfully returning the ID 100 for example but I would like it to return ID:100 . How can I concatenate the string ID with the result of Databinder.Eval?

like image 853
Diego Avatar asked Sep 25 '26 18:09

Diego


1 Answers

Try this (C#) ...

Tooltip='<%# "ID:" + DataBinder.Eval(Container.DataItem, "ID") %>'
like image 138
Chris Woodward Avatar answered Sep 28 '26 17:09

Chris Woodward



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!