c# - syntax error when trying to do an Eval -
After
I am trying to do this:
<% # DataBinder .Eval (container .DataItem, "SERIAL"). ToString ()! = ""? & Gt%; & Lt; A href = "javascript: void (0)" id = "desc_lb" runat = "server" visible = "true" & gt; Description & lt; / A & gt; & Lt; Telerik: RadToolTip ID = "Description" runat = "Server" TargetControlID = "Desc_lb" text = 'Reference Order Serial: & lt;% # Eval ("serial")% & gt; & Gt; & Lt; / Telerik: RadToolTip & gt; & Lt;% #: ""% & gt;
A repeater itemTemplate but it is giving me a syntax error incorrect expression inside:
and syntax error: Expected
near ?
What I see and understand, try it, you should do it: (.! DataBinder.Eval (Container.DataItem, "serial") toString () = "")
& lt% if {%> & Lt; A href = "javascript: void (0)" id = "desc_lb" runat = "server" view = "true" & gt; Diskettes & lt; / A & gt; & Lt; Telerik: RadToolTip ID = "Description" runat = "Server" TargetControlID = "Desc_lb" text = 'Reference Order Serial: & lt;% # Eval ("serial")% & gt; & Gt; & Lt; / Telerik: RAD tooltip & gt; & Lt;%}% & gt;
Using a short circuit is a problem
Comments
Post a Comment