I am trying to create a web page that has a checkboxlist which I have bound to a datasource so when the page loads I can get the names of all my employees to appear in the box. The table which supplies this information also has a field that shows whether or not the employee is at work. I would like the checkboxlist to show a check mark placed in the box for each employee who is at work
in other words, when the page loads the checkboxlist has every employoee listed and a check mark on those employees who are in the office.
I can load the list of name fine....but I cannot get the check mark in the box. I have a stored procedure that finds all employees who's "at work" field = 1 and I know how to code to run that stored proc... . I am thinking I just need to know where to put the code? Which Event? If I put it in the page load event it doesnt show the marks.
Any help would be great
thanks
joe
in other words, when the page loads the checkboxlist has every employoee listed and a check mark on those employees who are in the office.
I can load the list of name fine....but I cannot get the check mark in the box. I have a stored procedure that finds all employees who's "at work" field = 1 and I know how to code to run that stored proc... . I am thinking I just need to know where to put the code? Which Event? If I put it in the page load event it doesnt show the marks.
Any help would be great
thanks
joe