hi guys
when i select item from checkboxlist i.e ravi ,raj,rakesh
then their office_code will be stored in office_code column,,
ADDGRP table are as follows:
DEPTNAME VARCHAR2(200 BYTE)
DEPTUSER VARCHAR2(1000 BYTE)
GRPNAME VARCHAR2(50 BYTE)
OFFICE_CODE VARCHAR2(50 BYTE)
but in my case my code is not taking office_code of ravi
this is neglecting first selection i.e ravi .and after that raj,rakesh office_code is stored in db
code are as follows:
string str = "";
string office_code = string.Empty;
for (int i = 0; i <= CheckBoxList1.Items.Count - 1; i++)
{
if (CheckBoxList1.Items[i].Selected)
{
if (str == "")
{
...
Go to the complete details ...