>I have created my first asp.net UserControl that I will use in several places throughout my app. It contains a FormView to display fields of the record in a DataTable.
>
>It all seems fine, except, I can't figure out how to set the DataSource on the FormView that is within the UserControl. I want to set the DataSource in a method in code-behind.
>
>I see from intellisense that the UserControl does not have a DataSource property, but it does have a DataBind method. I can imagine that one might need to set different DataSources on multiple controls within a UserControl, so there must be some method for drilling into a UserControl, but I cannot figure it out.
>
>Since UT will not let me post aspx code (it always gives an error when I try to post asp.net code), please see the code at this link on StackOverflow:
>
>
http://stackoverflow.com/questions/752935/set-datasource-on-controls-within-asp-net-usercontrol>-
I have you DOWN feedback. Just kidding.