locked
MasterPage ContentPlaceholder inside Update panel RRS feed

  • Question

  • User-203893726 posted

    Hi i have a problem the same as describe here:

    http://forums.asp.net/t/1116193.aspx?MasterPage+ContentPlaceholder+inside+Update+panel

    the code that attached at the reply is actually not producing the error.

    i'm attaching the code with the error so anyone can tell me why in my case it produce an error (actually a warrnings)

    error

    CODE:

    ASPX PAGE WITH THAT MASTER:

    <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="TestMaster2.aspx.cs" Inherits="TestMaster2" %>
    
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderHead" Runat="Server">
    </asp:Content>
    
    <asp:Content ID="c1" ContentPlaceHolderID="ContentPlaceHolder10" Runat="Server">
    </asp:Content>
    <asp:Content ID="c2" ContentPlaceHolderID="ContentPlaceHolder11" Runat="Server">
    
        <asp:DropDownList ID="dd1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dd1_SelectedIndexChanged" >
    
        </asp:DropDownList>
    </asp:Content>
    

    MASTER PAGE:

    <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs" Inherits="MasterPage2" %>
    
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
           
        <title> </title>
        <asp:ContentPlaceHolder ID="ContentPlaceHolderHead" runat="server" />
    
    </head>
    <body>
        <form id="form1" runat="server">
            <cc1:ToolkitScriptManager ID="ScriptManager1" runat="server">
              
            </cc1:ToolkitScriptManager>
    
    
            <table >
                        
                <tr>
                    <td>
                        <div dir="rtl" style="margin: 5px 10px 0px 20px;">
                            <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                <ProgressTemplate>
                                    <cc1:AlwaysVisibleControlExtender ID="AlwaysVisibleControlExtender1" runat="server"
                                        HorizontalSide="Center" VerticalSide="Middle"
                                        TargetControlID="divLoading">
                                    </cc1:AlwaysVisibleControlExtender>
                                    <div runat="server" id="divLoading" class="divLoading">
                                        <img src="../Images/loading.gif" alt="Loading..." /><br />
                                        טוען...
                                    </div>
                                </ProgressTemplate>
                            </asp:UpdateProgress>
    
                                 <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
    
    
                            <cc1:TabContainer ID="TabContainer1" runat="server"
                                OnActiveTabChanged="TabContainer1_ActiveTabChanged" AutoPostBack="true"
                                EnableViewState="true"
                                Width="100%" ActiveTabIndex="1">                          
    
                                <cc1:TabPanel ID="TabPanel10" runat="server" HeaderText="report1">
                                    <ContentTemplate>
                                        <asp:Panel ID="TabContent10" runat="server">
                                            <asp:ContentPlaceHolder ID="ContentPlaceHolder10" runat="server" />
                                        </asp:Panel>
    
                                    </ContentTemplate>
    
    
    
                                </cc1:TabPanel>
    
                                <cc1:TabPanel ID="TabPanel11" runat="server" HeaderText="deals">
                                    <ContentTemplate>
                                        <asp:Panel ID="TabContent11" runat="server">
                                            <asp:ContentPlaceHolder ID="ContentPlaceHolder11" runat="server" />
                                        </asp:Panel>
    
                                    </ContentTemplate>
    
                                </cc1:TabPanel>
    
                            </cc1:TabContainer>
    
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </td>
                </tr>
            </table>
        </form>
    </body>
    </html>
    



    Thursday, October 31, 2013 4:30 AM