Posted on: 7/15/2012 12:46:34 PM | Views : 281

Hi,
Iam using four check boxes in my web page, i just want to assign datatable which is already populated with data to those checkboxes which are checked true.
suppose checkbox 1 and checkbox 3 is seleced , then just assign Dt1 & DT2 to those checked items.
suppose checkbox2,checkbox3 and checkbox4 is selected,then assign DT1,DT2,DT3 respectively to those checkboxesoxes.
currently wat iam doing is,checking the condition
if(chk1.checked==true && chk2.checked==true && chk3.checked==false && chk4.cjhecked==false)
{
DT1 = viewstate["t1"];
DT2 = viewstate["t2"];
}
if(chk1.checked==true && chk2.checked==true && chk3.checked==false && chk4.checked==true)
{
DT1 = viewstate["t1"];
DT2 = viewstate["t2"];
DT3= viewstate["t4"];
}
if(chk1.checked==true && chk2.checked==false&& chk3.checked==true&am ...

Go to the complete details ...