Using Eval with var keywords in Asp.Net

Bukiet

New Member
Code in the backend:\[code\]var count = msgInfo.Count().ToString();\[/code\]What I tried in the front-end:\[code\]<span><%#Eval("count")%></span>\[/code\]However, my value is not displaying on the front-end. Does anyone know how can I do that with C#?
 
Back
Top