Z
Z D
Hello,
I'm using a repeater control and I wish to put some logic in when accessing
one of the columns.
If I use this syntax, I'm able to output the column with no problem:
<%# (Container.DataItem("Quantity")) %>
But now I wish to put some logic around this, so, first I tried the
following:
<% Response.Write(Container.DataItem("HomeProfileNrgEquipQtyElectric")) %>
This gives the following error:
BC30451: Name 'Container' is not declared.
Does anybody have any idea what I'm doing wrong? Eventually, instead of
using the Response.Write, I'll be putting an IF statement in there. Why
cant I access the "container" in this fashion?
I'm assuming it's just my syntax.... ?
Thanks in advance
-ZD
I'm using a repeater control and I wish to put some logic in when accessing
one of the columns.
If I use this syntax, I'm able to output the column with no problem:
<%# (Container.DataItem("Quantity")) %>
But now I wish to put some logic around this, so, first I tried the
following:
<% Response.Write(Container.DataItem("HomeProfileNrgEquipQtyElectric")) %>
This gives the following error:
BC30451: Name 'Container' is not declared.
Does anybody have any idea what I'm doing wrong? Eventually, instead of
using the Response.Write, I'll be putting an IF statement in there. Why
cant I access the "container" in this fashion?
I'm assuming it's just my syntax.... ?
Thanks in advance

-ZD