Posted on: 5/20/2011 11:55:04 AM | Views : 284

Hello guys, i am using a javascript library that displays some text when you hover on some field. It works when you use the title attribute with a format like this:
header=[HEADER] body=["TEXT THAT YOU WANT TO SHOW"] fade=[on] cssheader=[mycssclassnameheader] cssbody=[mycssclassnamebody] offsetx=[0] offsety=[10]
I don't want to set all that from the .cs file, and i have been able to use the Eval() binding method, but only on controls that are databounded and can use templates like gridview.
Can i use Eval() with a plain label, or what should i use instead?
Right now, i am just concatenating the dynamic value i want in body= from the source file so at least i don't have to type the whole header= line but i want to find a more elegant solution.
 
I also tried declaring a public attribute in the class and using it with Eval() like this:
<asp:Label ID="lblValorPlaca" runat="server"
       ...

Go to the complete details ...