I have a block of code that calls the database and fetches the values of checkboxes on ASP.NET web page. I want to make a custom method that I can call later to perform this action. I created a class but I'm having trouble setting the values of the checkboxes as it doesn't recognize the controls. Any help would be appreciated as I'm new to programming.
Regards
Regards