I have several User Controls and I will need to fill some of the Web Form
Controls in them with data from the database. So here's the question:
Should I write the code to bind a RadioButtonList control to a dataset
inside the code-behind for the UserControl?
or
Should I create a method called something like 'BindDataSet' to pass the
Data Set to the User control and then bind the control in the method?
I'm thinking that it might be better with the latter b/c it would make the
User Control more reusable for other projects.
Is there another way that I'm not thinking of right now? Any other
thoughts?
Thanks in advance!
Andrea