hi friends ,
i am doing a project on employee shifts. I have create one add control button and two check boxes and some labels and textbox controls. now my question is i want to add details to database when i click on add button when i select check box some labels and textboxes disables requried controls will enable when i insert data into enable control fields and click on add button the data should be inserted into database could. any one help me how write the logic.
Thanks
Loading
praveen mauryaPosted Jul 10, 2012, 1:38 AM
this is not a hard thing you must add this type of code at both checkbox click event
at checkbox1 click event
if(checkbox1.checked==true)
{
label1.visible=true;
label2.visible=false;
textbox1.visible=true;
textbox2.visible=false
}
else
{
}