I have this code:
<asp:CheckBox ID="chkLivrareExterna" runat="server"
OnCheckedChanged="ChkLivrare_CheckedChanged"
AutoPostBack="true" ToolTip="<%= getChkLivrareExternaToolTip() %>"/>
and the method is:
protected String getChkLivrareExternaToolTip()
{
return "testIN";
}
I cannot understand why, at tool tip on mouse over it puts:
instead of evaluating this expression…
Tried with simple quotes but the same problem.
This syntax is not supported for setting properties on server-side controls.
Instead, you can set the property in your code-behind, in
Page_Load:You can also set the property using data-binding syntax:
You then need to call
chkLivrareExterna.DataBind()inPage_Load.