is it possilble to do logic inside an itemtemplate
Hi, I have a cell in a datagrid which looks like this
<TD style="FONT-SIZE: 10pt"><%# databinder.eval(container.dataitem,"s1cl")%></TD>
What I need to do is perform some logic on the value, such as: if the value (databinder.eval(container.dataitem,"s1cl") = somestring then display this otherstring instead of origional value. I know how to form the if then statement. What I don't know is how or where to place it. In the codebehind or in the html or both? and how.
Thanks for you help
Raif
|