Thursday, March 22, 2012

What is the correct Condition (IF...THEN) with Data Repeater ?

Hi Eliyahu,
I don;t understand. If I want to making condition case in ItemTemplate.
How to handle it ?
Any exmples ? Urgent. ThanksMy point is that you don't make condition cases in ItemTemplate. You handle
conditions in the code.
For example, this would be a fragment of your DataItemBound event handler:
if (e.Item.DataItem as <type cast to your datasource item> )["LINE53"] <> 2)
runCodeThatWillSetTheTemplateForThisCond
ition();
Eliyahu
<kelvinweb@.gmail.com> wrote in message
news:1142472082.279204.27760@.j52g2000cwj.googlegroups.com...
> Hi Eliyahu,
> I don;t understand. If I want to making condition case in ItemTemplate.
> How to handle it ?
> Any exmples ? Urgent. Thanks
>

0 comments:

Post a Comment