I currently have multiple user controls in a default page. Each one has a different grid that is going to become a dashboard. However to cut down on repeating code, some of the controls use the same datasource. Is there anyway to have them all share the same datasource. Or if necessary all use the same OnSelecting
statement that I could define elsewhere?
Such as one of the LinqDataSources
selects all the users in a group, this displays them all in a gridview
. However a detailed gridview
below that in a separate ascx control uses the same data, but displays it in another way, grouping differently etc. However they both (if placed on one page) use the same datasource. If there anyway for them to use the same selecting Sub
somehow? Maybe part of a class somewhere else in the code?