I want to add checkboxlist items value into the textbox.
like if i have a checkboxlist called itemslist , in this i have 3 items
item_a value 10
item_b value 20
item_c value 30
and a textbox
now if i click item_a 10 will display in textbox,
if i click item_b 30 will diplay in textbox
if i click item_c 60 will display in textbox.
in asp.net vb- c# prog
If select mango 10 will display
if I select mango, apple then 30 (addtion of mango and apple) willl dispaly
If I select apple,orange then 60(addition of apple's value and orange's value) will display
<asp:CheckBoxList ID="chkFruits" runat="server" OnSelectedIndexChanged="chkFruits_SelectedIndexChanged"
AutoPostBack="true">
<asp:ListItem Text="Mango" Value="10"></asp:ListItem>
<asp:ListItem Text="Apple" Value="20"></asp:ListItem>
<asp:ListItem Text="Banana" Value="30"></asp:ListItem>
<asp:ListItem Text="Orange" Value="40"></asp:ListItem>
</asp:CheckBoxList>
<asp:TextBox ID="txtFruits" runat="server"></asp:TextBox>