Hi could you help me please. I need to write condition on client side within GridView itemtemplate.
Like you can see below but it is not working …
<% if(Eval("item").Contains("keyword"){%>
<img src='<# Eval("imagepath") %>' />
<%}
else if(Eval("item").Contains("keyword2")){
%>
<img src='<# Eval("imagepath2") %>' />
<%}%>
Use a code-behind function to return a boolean.
ASPX:
Code-Behind: