Using Controls and Datasources from different ContentPlaceHolders
If you have a SqlDataSource control and a combobox on one contentplaceholder, and the gridview and datasource on another contentplaceholder, you will have problems associating the combobox to filter the gridview if you don’t use the example below to call the taget contentplaceholder and put a “$” between it and the controlID of the combobox…
<asp:SqlDataSource ... >
<SelectParameters>
<asp:ControlParameter ControlID="TheContentPlaceHolderID$TheControID" ... />
</SelectParameters>
</asp:SqlDataSource>
Advertisement
