Logical Help required with checkedlist box
-
Hello, I am working on a school result processing project. I have one checkedlist control which have 3 options:(To choose paper code) All First Second to select the paper code option. All stands for all papers i.e. paper1 and paper2; while if any of other than "All" option checked by user; the respective action should be taken place. Suppose, user checked on option First, then all records whose papercode <> 1; will be deleted by command.ExecuteNonQuery() and if user checked on Second, then all records whose papercode <> 2; will be deleted by command.ExecuteNonQuery(). If user checked on All or any of First/Second; no action is needed; because All option means no action required. Kindly help to code this requirement or let me know, if i am not clear to explain my question. Thank and Regards Girish Sharma
-
Hello, I am working on a school result processing project. I have one checkedlist control which have 3 options:(To choose paper code) All First Second to select the paper code option. All stands for all papers i.e. paper1 and paper2; while if any of other than "All" option checked by user; the respective action should be taken place. Suppose, user checked on option First, then all records whose papercode <> 1; will be deleted by command.ExecuteNonQuery() and if user checked on Second, then all records whose papercode <> 2; will be deleted by command.ExecuteNonQuery(). If user checked on All or any of First/Second; no action is needed; because All option means no action required. Kindly help to code this requirement or let me know, if i am not clear to explain my question. Thank and Regards Girish Sharma
Your problem is not very clear.Can you explain a bit? What I understand, you need to delete the record if user selects first or second and dont need to do anything if user selects all. if yes then have check at serverside and take the action accordingly.
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
Your problem is not very clear.Can you explain a bit? What I understand, you need to delete the record if user selects first or second and dont need to do anything if user selects all. if yes then have check at serverside and take the action accordingly.
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
Hi Brij, Thanks for your reply and time given to my problem. Let me once again clear it more: If user selected "All" option with/without First/Second option then no action is required. If user selected First only then deleted those records whose papercode <> 1 Endif If user selected Second only then deleted those records whose papercode <> 2 Endif If user selected First and Second No Action required Endif If user selected All+First+Second No action required Endif Means, only action required on selection of single "First" or "Second" option and wish to perfrom some delete operation on table. Its vb.net 2005 project please. Regards Girish Sharma
-
Hi Brij, Thanks for your reply and time given to my problem. Let me once again clear it more: If user selected "All" option with/without First/Second option then no action is required. If user selected First only then deleted those records whose papercode <> 1 Endif If user selected Second only then deleted those records whose papercode <> 2 Endif If user selected First and Second No Action required Endif If user selected All+First+Second No action required Endif Means, only action required on selection of single "First" or "Second" option and wish to perfrom some delete operation on table. Its vb.net 2005 project please. Regards Girish Sharma