Hello guys,
I have 2 tables "Branch" and "Privilege" .
On page load i am binding all the checboxes from "Branch" table which is working fine.
Now i have one textbox for employee Id and 1 Get Button.
On click of Get Button i am checking all the branches assigned to that employee in " Privilege" table and fetch all the assigned branches then checked those checkboxes.
For e.g
Branch table PrivilegeTable
BranchName EmpCode BranchName
A 101 A
B 101 B
C 102 C
D 103 D
In above e.g for empCode 101 , 2 branches exists in BranchTable . When i will click on Get Button i want that Branch A,B checkbox must be checked on my page the remaining branches i.e C,D will not be checked .
I am having some problem in my view .
Please find my code below.
Any help would be much appreciated :