This question is locked. New answers and comments are not allowed.
The page hierarchy is as follows:
- Master
-- Nested Master
--- Content
Inside of the Nested Master Page I have something like the following
<telerik:RadGrid ID="RadGrid1" ShowStatusBar="true" runat="server" AllowPaging="True" OnItemDataBound="RadGrid1_ItemDataBound"
PageSize="10" DataSourceID="SqlDataSource1" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" >
<MasterTableView Width="100%" AutoGenerateColumns="False" DataKeyNames="CenterClassId" CommandItemDisplay="Top"
DataSourceID="SqlDataSource1" AlternatingItemStyle-BackColor="AntiqueWhite">
<NestedViewTemplate>
<asp:ContentPlaceHolder ID="RadGrid1Holder" Runat="Server"></asp:ContentPlaceHolder>
</NestedViewTemplate>
</MasterTableView>
....
This results in an error: "The DataSourceID of 'RadGrid1' must be the ID of a control of type IDataSource. A control with ID 'SqlDataSource1' could not be found." The 'SqlDataSource1' is defined in the Content Page that inherits from this Nested Master Page.
If I remove the <NestedViewTemplate> tags I get a parse error that seems to be complaining about the use <asp:ContentPlaceHolder> inside the scope of the <MasterTableView>.
How do I place a ContentPlaceHolder inside of a MasterTableView?
If this is not possible, then what mechanisms exist that would allow the <MasterTableView> to be defined in the Nested Master Page will allowing the contents of the MasterTableView to be populated at the Content Page level?
Why do I want to do this? I want to be able to change the look and feel for all of the <MasterTableViews> across my entire site in one location instead of needing to change hundreds of Content Pages. For example, I'd like to be able to change the "Width" or "AlternatingItemStyle-BackColor" parameters in the a Nested Master file, or by some other global mechanism.
Thanks.
- Master
-- Nested Master
--- Content
Inside of the Nested Master Page I have something like the following
<telerik:RadGrid ID="RadGrid1" ShowStatusBar="true" runat="server" AllowPaging="True" OnItemDataBound="RadGrid1_ItemDataBound"
PageSize="10" DataSourceID="SqlDataSource1" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" >
<MasterTableView Width="100%" AutoGenerateColumns="False" DataKeyNames="CenterClassId" CommandItemDisplay="Top"
DataSourceID="SqlDataSource1" AlternatingItemStyle-BackColor="AntiqueWhite">
<NestedViewTemplate>
<asp:ContentPlaceHolder ID="RadGrid1Holder" Runat="Server"></asp:ContentPlaceHolder>
</NestedViewTemplate>
</MasterTableView>
....
This results in an error: "The DataSourceID of 'RadGrid1' must be the ID of a control of type IDataSource. A control with ID 'SqlDataSource1' could not be found." The 'SqlDataSource1' is defined in the Content Page that inherits from this Nested Master Page.
If I remove the <NestedViewTemplate> tags I get a parse error that seems to be complaining about the use <asp:ContentPlaceHolder> inside the scope of the <MasterTableView>.
How do I place a ContentPlaceHolder inside of a MasterTableView?
If this is not possible, then what mechanisms exist that would allow the <MasterTableView> to be defined in the Nested Master Page will allowing the contents of the MasterTableView to be populated at the Content Page level?
Why do I want to do this? I want to be able to change the look and feel for all of the <MasterTableViews> across my entire site in one location instead of needing to change hundreds of Content Pages. For example, I'd like to be able to change the "Width" or "AlternatingItemStyle-BackColor" parameters in the a Nested Master file, or by some other global mechanism.
Thanks.