User-594738727 posted
I have created a custom control which directly accesses the database through our database access layer. It basically accepts two arguments in a method, and using these receives data from the database for display, all through the db access layer.
A team member has told me that in order to make it fully reusable I should be separately accessing the database from within my page logic, and then just passing the data to the control, for it to show. However as the control will only be
used within this context, I fail to see any problems, and I suppose if their are problems, that particular method doesn't need to be called?
So what the best practice in this case?