Namitha

Namitha

  • NA
  • 18
  • 0

checkbox list

May 29 2009 1:16 AM

Hi i have some doubt regarding check box list

i have a check box list

 

<asp:CheckBoxList ID="emailcheklist" runat="server"

RepeatDirection="Horizontal">

<asp:ListItem Value="1">a</asp:ListItem>

<asp:ListItem Value="2">b</asp:ListItem>

<asp:ListItem Value="3">c</asp:ListItem>

<asp:ListItem Value="4">d</asp:ListItem>

</asp:CheckBoxList>

 

and while saving to database am taking 2 power of value.if multiple options are selected it will add up.

supose if i select a nd b

it will 2 power 1+2 power 2 which will be

6.

but while retrieving how can i check the items a nd b.

anybod knows bit operator to check this?

 

pls help

 

 

Thank u

Namitha

 


Answers (5)