ToolTip with text + databinder.eval

how to add a tooltip in asp: label with a value from the database plus text?

I currently have

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

and it successfully returns the id 100, but I would like it to return ID:100. How can I combine row id with result of Databinder.Eval?

+3
source share
1 answer

Try this (C #) ...

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

All Articles