I'm working on implementing the following:
After a few stops and starts I am finally getting somewhere converting this to VB and to my particular scenario.
However, I can't seem to get past the following code snippet in the section marked "The Details":
<tr class='<%# (Container.ItemIndex%2==0)
? "row" : "altrow" %>'>
<%# Container.ItemIndex+1 %>
Can someone please translate this for me correctly?
I've tried the following:
<tr class='<%# If ((Container.ItemIndex Mod 2)) = 0 THEN "row" ELSE "altrow" %>'>
ex + 1)%></td>
but I continue to get the error message:
First operand in a binary 'If' expression must be nullable or a reference type.
I know it's got to be something simple I missing in converting things, but I've been staring at this since before the holiday break and, now that we're back, I'm going braindead.
oh, and I did download his project and verified that, yes, his code works as explained. So there's definitely something "Lost in Translation".
Thanks in advance!