If we write the IF condition in rowbound event, wer wil be read the values
from DB in th e reader?



On Sun, Apr 5, 2009 at 3:56 PM, Vivek SHANTHARAM <[email protected]>wrote:

> Write an IF Condition in the rowdatabound event.
> if(dbvalue == 'Y')
> {
>      e.row.findcontrol(checkbox).checked = true;
> }
> On Sun, Apr 5, 2009 at 2:10 PM, Jeena Ajiesh <[email protected]> wrote:
>
>>  Hi all,
>> I have a problem in binding the values from the database to checkbox.
>> I'm marking the attendance of a class .
>>
>> 'Present'  - Checkbox is checked
>> 'Absent' --  Checkbox is unchecked.
>>
>> In database i can insert this absent and present.
>> But wen retrieving the values of checkbox along with student id, & class,
>> i can't bind that correct value to the checkbox.
>>  At the databind, all the checkbox is checked.
>> Wer to do this conditional test???
>> If the value in database is 'Absent' , the checkbox is unchecked. Else it
>> is checked.
>> Please help.
>>
>> I'm doing in vs 2005, asp.net, vb.
>>
>> How to resolve this?
>>
>>
>> --
>> ****************
>> Thanks & Regards,
>> Jeena Ajiesh
>> Email: [email protected]
>>          [email protected]
>>
>>
>


-- 
****************
Thanks & Regards,
Jeena Ajiesh
Email: [email protected]
         [email protected]

Sent from Dubayy, United Arab Emirates

Reply via email to