Hi,
i am using Repeater Control . I want to apply if else condition with "and && " Operator
currently i am doing like this
<% if(string.IsNullOrEmpty(Convert.ToString(Eval("ProgramName"))) &&
(!string.IsNullOrEmpty(Convert.ToString(Eval("ProjectNameEnglish")))))
{ Eval("ProjectNameEnglish"); }
else
{ DateTime.Now.ToString(); }
%>
Its giving me error..
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
How to solve this .Kindly Help me out
Thanks