Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii ,

Inside repeater control I am trying to do something like this

<% #Eval("IsActionCompleted")==false ? "Live":"Completed"%>



But its now working can you please suggest tyhe correct way to ryt this thing..

Also what is the difference between writing eval with # and = signs

<%=Eval("Status") %>

vs

<%#Eval("Status") %>
Posted

 
Share this answer
 
Comments
Torakami 20-Nov-14 7:59am    
Thanks for suggested links .. they helped me to build the solution .. check my solution which i tried for

<%#Eval("IsActionCompleted").ToString().ToLower()=="false" ? "Live":"Completed"%>

C#

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900