Posted on: 6/14/2015 5:04:37 PM | Views : 669

Hello
I have a Web User Control which I have developed to represent a company object and the services the company is subscribing to. The control has a public property CompanyId which the host page sets. When the property is set, the control connects to the BLL and retrieves the company details and a list of services the company is subscribing to. It then populates the various textboxes for the details. For the services, I use a CheckBoxList control which I create (from all available services) and loop through the company services checking off the ones the company is subscribing to.
The control also has a Save() method which causes all values in the textboxes to be saved. For the services, I am looping through all checkboxes and create/delete service subscriptions from the DB accordingly.
When I set the CompanyId (by selecting from a grid on the host page), the control populates all fields as it should. However when I call the Save method, all textbooks ...

Go to the complete details ...