locked
Please Help me putting the ScriptManager and UpdatePanel to avoid Screen PostBack Flickering RRS feed

  • Question

  • User-786564416 posted

    I have the following content page [NewAuthorization.aspx] . I want the prevent the screen flickering occurring when the Checkboxes [Limited] and [Unlimited] are checked.  

    Where should I exactly place the [ScriptManager]? Is it in the MasterPage or the content page? And Where should I place the [UpdatePanel] and [ContentTemplate]. I would

    highly appreciate showing me where exactly in my code should I place these controls.

    <%@ Page Title="" Language="VB" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="false" CodeFile="NewAuthorization.aspx.vb" Inherits="Authorization_NewAuthorization"  MaintainScrollPositionOnPostback="true" %>
    
    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
        <style type="text/css">
                           
                             
             .MainFieldsDivStyle
            {
                border-color: Black;
                width: 70%;
                border-style: solid;
                margin-top: 22px;
                background: rgb(219, 219, 219);
                background: rgb(219, 219, 219);
            }     
            
                     
                   
            .ErrorMessage
            {
                color: red;
                text-align: right;
                font-family: "sakkal Majalla";
                font-style: normal;
                font-size: 24px;
                margin-left: 0px;
            }
           
            .CellStyle
            {
                background-color:#7DE6FF;
                border-color:Black;
                border-style:solid;
                border-width:1px;
            }   
            
            
                 
            
            .style3
            {
                height: 50px;
            }
           
            
            .auto-style2 {
                border: 1px solid Black;
                background-color: #7DE6FF;
                height: 83px;
            }
            .auto-style3 {
                height: 83px;
                text-align: right;
            }
            .auto-style7 {
                height: 34px;
            }
           
            
            .auto-style9 {
                border: 1px solid Black;
                background-color: #7DE6FF;
                height: 37px;
            }
            .auto-style10 {
                height: 37px;
            }
                   
            
            .CStyle {
                font-family: sc_AMEEN;
                font-size: 24px;
            }
                   
            
            </style>
        
        
    </asp:Content>
    
    
    <asp:Content ID="Content2" ContentPlaceHolderID="CpMainContent" Runat="Server">
    
    
        
        <div id="MainFields"  runat="server" class="MainFieldsDivStyle" >
    
            <table id="NewAuthorizationTable" runat="server" width="100%">
                <tr>
                    <td width="7%" style="text-align: right" class="auto-style10"  >
                    </td>
                    <td width="70%" colspan="2" class="auto-style10">
                    </td>
                    <td width="18%" class="auto-style10">
                    </td>
                    <td width="5%" class="auto-style10"  >
                    </td>
                    
                    
                </tr>
                <tr>
                    
                    <td style="text-align: left">                    
                        <asp:RequiredFieldValidator ID="AdminUnitRequiredValidator" runat="server" ControlToValidate="AdminUnitIndx" 
    CssClass="CStyle" Display="Dynamic" ErrorMessage="Administration Unit Should Be Selected">*</asp:RequiredFieldValidator> </td> <td align="right" colspan="2" > <asp:DropDownList ID="AdminUnitIndx" runat="server" DataSourceID="SDS1" DataTextField="Name" DataValueField="Indx" Height="35px" style="font-family: 'Sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px; margin-bottom: 0px; border-style:solid; border-color:Black;" Width="570px" BackColor="White" /> </td> <td align="right" class="CellStyle"> <asp:Label ID="FromLabel" runat="server" Text="Admin Unit" BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px" style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;" Width="130px">
    </asp:Label> </td> <td> </td>
    </tr> <tr> <td style="text-align: right"> &nbsp;</td> <td align="right" colspan="2" > <asp:DropDownList ID="HeadIndx" runat="server" DataSourceID="SDS2" DataTextField="Name" DataValueField="Indx" Height="35px" style="font-family: 'Sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px; margin-bottom: 0px; border-style:solid; border-color:Black;" Width="570px" BackColor="White" /> </td> <td align="right" class="CellStyle"> <asp:Label ID="ToLabel" runat="server" Text="Supervisor" BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="30px" style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;" BorderColor="Black" Width="110px" ></asp:Label> </td> <td> </td> </tr> <tr> <td style="text-align: left"> <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="# Till Date Must Be After Since Date #" style="font-size: 24px; font-family: sc_AMEEN">*</asp:CustomValidator> <asp:CustomValidator ID="CustomValidator3" runat="server" ErrorMessage="# Since Date is Wrong # " SetFocusOnError="True" Display="Dynamic" style="font-family: SC_AMEEN; font-size: 24px" >*</asp:CustomValidator> </td> <td style="text-align:right" colspan="2" > <asp:DropDownList ID="FromYearVal" runat="server" Height="30px" style="margin-left: 252px; font-size: 20px; font-family: 'Sakkal Majalla';" Width="65px" BorderColor="Black" BorderStyle="Solid" Font-Size="22px" > <asp:ListItem>2016</asp:ListItem> <asp:ListItem Value="2015">2015</asp:ListItem> <asp:ListItem Value="2014">2014</asp:ListItem> <asp:ListItem Value="2013">2013</asp:ListItem> <asp:ListItem Value="2012">2012</asp:ListItem> <asp:ListItem Value="2011">2011</asp:ListItem> <asp:ListItem Value="2010">2010</asp:ListItem> <asp:ListItem Value="2009">2009</asp:ListItem> <asp:ListItem Value="2008">2008</asp:ListItem> <asp:ListItem Value="2007">2007</asp:ListItem> <asp:ListItem Value="2006">2006</asp:ListItem> <asp:ListItem Value="2005">2005</asp:ListItem> <asp:ListItem Value="2004">2004</asp:ListItem> <asp:ListItem Value="2003">2003</asp:ListItem> <asp:ListItem Value="2002">2002</asp:ListItem> <asp:ListItem Value="2001">2001</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="FromMonthVal" runat="server" Height="30px" style="margin-left: 28px; font-size: 20px; font-family: 'Sakkal Majalla';" Width="60px" BorderColor="Black" BorderStyle="Solid" Font-Size="22px" > <asp:ListItem Value="JAN">JAN</asp:ListItem> <asp:ListItem Value="FEB">FEB</asp:ListItem> <asp:ListItem Value="MAR">MAR</asp:ListItem> <asp:ListItem Value="APR">APR</asp:ListItem> <asp:ListItem Value="MAY">MAY</asp:ListItem> <asp:ListItem Value="JUN">JUN</asp:ListItem> <asp:ListItem Value="JUL">JUL</asp:ListItem> <asp:ListItem Value="AUG">AUG</asp:ListItem> <asp:ListItem Value="SEP">SEP</asp:ListItem> <asp:ListItem Value="OCT">OCT</asp:ListItem> <asp:ListItem Value="NOV">NOV</asp:ListItem> <asp:ListItem Value="DEC">DEC</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="FromDayVal" runat="server" Height="30px" style="margin-left: 28px; font-size: 20px; font-family: 'Sakkal Majalla';" Width="61px" BorderColor="Black" BorderStyle="Solid"> <asp:ListItem Value="1">1</asp:ListItem> <asp:ListItem Value="2">2</asp:ListItem> <asp:ListItem Value="3">3</asp:ListItem> <asp:ListItem Value="4">4</asp:ListItem> <asp:ListItem Value="5">5</asp:ListItem> <asp:ListItem Value="6">6</asp:ListItem> <asp:ListItem Value="7">7</asp:ListItem> <asp:ListItem Value="8">8</asp:ListItem> <asp:ListItem Value="9">9</asp:ListItem> <asp:ListItem Value="10">10</asp:ListItem> <asp:ListItem Value="11">11</asp:ListItem> <asp:ListItem Value="12">12</asp:ListItem> <asp:ListItem Value="13">13</asp:ListItem> <asp:ListItem Value="14">14</asp:ListItem> <asp:ListItem Value="15">15</asp:ListItem> <asp:ListItem Value="16">16</asp:ListItem> <asp:ListItem Value="17">17</asp:ListItem> <asp:ListItem Value="18">18</asp:ListItem> <asp:ListItem Value="19">19</asp:ListItem> <asp:ListItem Value="20">20</asp:ListItem> <asp:ListItem Value="21">21</asp:ListItem> <asp:ListItem Value="22">22</asp:ListItem> <asp:ListItem Value="23">23</asp:ListItem> <asp:ListItem Value="24">24</asp:ListItem> <asp:ListItem Value="25">25</asp:ListItem> <asp:ListItem Value="26">26</asp:ListItem> <asp:ListItem Value="27">27</asp:ListItem> <asp:ListItem Value="28">28</asp:ListItem> <asp:ListItem Value="29">29</asp:ListItem> <asp:ListItem Value="30">30</asp:ListItem> <asp:ListItem Value="31">31</asp:ListItem> </asp:DropDownList> </td> <td align="right" class="CellStyle"> <asp:Label ID="LetterIDLabel" runat="server" Text="Since Date:" BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="30px" style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;" BorderColor="Black" Width="110px" ></asp:Label> </td> <td> </td> </tr> <tr> <td style="text-align: left"> <asp:CustomValidator ID="DuplicateRecordValidator" runat="server" CssClass="AStyle" SetFocusOnError="True" Display="Dynamic" style="font-family: sc_AMEEN; font-size: 24px">*</asp:CustomValidator> <asp:CustomValidator ID="CustomValidator4" runat="server" ErrorMessage="# Until Date Is Wrong #" CssClass="BStyle" SetFocusOnError="True" Display="Dynamic" style="font-family: sc_AMEEN; font-size: 24px">*</asp:CustomValidator> </td> <td style="text-align:right"> <asp:DropDownList ID="ToYearVal" runat="server" Height="30px" style="margin-left: 29px; font-size: 20px; font-family: 'Sakkal Majalla';" Width="65px" BorderColor="Black" BorderStyle="Solid" Font-Size="22px" > <asp:ListItem>2017</asp:ListItem> <asp:ListItem>2016</asp:ListItem> <asp:ListItem Value="2015">2015</asp:ListItem> <asp:ListItem Value="2014">2014</asp:ListItem> <asp:ListItem Value="2013">2013</asp:ListItem> <asp:ListItem Value="2012">2012</asp:ListItem> <asp:ListItem Value="2011">2011</asp:ListItem> <asp:ListItem Value="2010">2010</asp:ListItem> <asp:ListItem Value="2009">2009</asp:ListItem> <asp:ListItem Value="2008">2008</asp:ListItem> <asp:ListItem Value="2007">2007</asp:ListItem> <asp:ListItem Value="2006">2006</asp:ListItem> <asp:ListItem Value="2005">2005</asp:ListItem> <asp:ListItem Value="2004">2004</asp:ListItem> <asp:ListItem Value="2003">2003</asp:ListItem> <asp:ListItem Value="2002">2002</asp:ListItem> <asp:ListItem Value="2001">2001</asp:ListItem> <asp:ListItem></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="ToMonthVal" runat="server" Height="30px" style="margin-left: 28px; font-size: 20px; font-family: 'Sakkal Majalla';" Width="61px" BorderColor="Black" BorderStyle="Solid" Font-Size="22px" > <asp:ListItem Value="JAN">JAN</asp:ListItem> <asp:ListItem Value="FEB">FEB</asp:ListItem> <asp:ListItem Value="MAR">MAR</asp:ListItem> <asp:ListItem Value="APR">APR</asp:ListItem> <asp:ListItem Value="MAY">MAY</asp:ListItem> <asp:ListItem Value="JUN">JUN</asp:ListItem> <asp:ListItem Value="JUL">JUL</asp:ListItem> <asp:ListItem Value="AUG">AUG</asp:ListItem> <asp:ListItem Value="SEP">SEP</asp:ListItem> <asp:ListItem Value="OCT">OCT</asp:ListItem> <asp:ListItem Value="NOV">NOV</asp:ListItem> <asp:ListItem Value="DEC">DEC</asp:ListItem> <asp:ListItem></asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="ToDayVal" runat="server" Height="30px" style="margin-left: 25px; font-size: 20px; font-family: 'Sakkal Majalla';" Width="61px" BorderColor="Black" BorderStyle="Solid"> <asp:ListItem Value="1">1</asp:ListItem> <asp:ListItem Value="2">2</asp:ListItem> <asp:ListItem Value="3">3</asp:ListItem> <asp:ListItem Value="4">4</asp:ListItem> <asp:ListItem Value="5">5</asp:ListItem> <asp:ListItem Value="6">6</asp:ListItem> <asp:ListItem Value="7">7</asp:ListItem> <asp:ListItem Value="8">8</asp:ListItem> <asp:ListItem Value="9">9</asp:ListItem> <asp:ListItem Value="10">10</asp:ListItem> <asp:ListItem Value="11">11</asp:ListItem> <asp:ListItem Value="12">12</asp:ListItem> <asp:ListItem Value="13">13</asp:ListItem> <asp:ListItem Value="14">14</asp:ListItem> <asp:ListItem Value="15">15</asp:ListItem> <asp:ListItem Value="16">16</asp:ListItem> <asp:ListItem Value="17">17</asp:ListItem> <asp:ListItem Value="18">18</asp:ListItem> <asp:ListItem Value="19">19</asp:ListItem> <asp:ListItem Value="20">20</asp:ListItem> <asp:ListItem Value="21">21</asp:ListItem> <asp:ListItem Value="22">22</asp:ListItem> <asp:ListItem Value="23">23</asp:ListItem> <asp:ListItem Value="24">24</asp:ListItem> <asp:ListItem Value="25">25</asp:ListItem> <asp:ListItem Value="26">26</asp:ListItem> <asp:ListItem Value="27">27</asp:ListItem> <asp:ListItem Value="28">28</asp:ListItem> <asp:ListItem Value="29">29</asp:ListItem> <asp:ListItem Value="30">30</asp:ListItem> <asp:ListItem Value="31">31</asp:ListItem> <asp:ListItem></asp:ListItem> </asp:DropDownList> </td> <td style="text-align:right"> <asp:CheckBox ID="Limited" AutoPostBack="true" runat="server" style="font-family: 'sakkal Majalla'; font-size: 24px"
    Text="Limited Period" TextAlign="Left" /> </td> <td align="right" class="auto-style2" rowspan="2"> <asp:Label ID="Label1" runat="server" Text="Till Date" BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="30px" style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;" BorderColor="Black" Width="110px" ></asp:Label> </td> <td class="auto-style3" rowspan="2"> </td> </tr> <tr> <td style="text-align: right"> &nbsp;</td> <td align="right" class="auto-style7" colspan="2" > <asp:CheckBox ID="UnLimited" AutoPostBack="true" runat="server" style="font-family: 'sakkal Majalla'; font-size: 24px"
    Text="Unlimited Period" TextAlign="Left" /> </td> </tr> <tr> <td style="text-align: right"> &nbsp;</td> <td align="right" colspan="2" > <asp:DropDownList ID="StatusDesc" runat="server" Height="32px" style="font-family: 'sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px;
    border-style:solid; border-color:Black; margin-left: 0px;" Width="570px" DataSourceID="SDS3" DataTextField="AuthorType" DataValueField="AuthorTypeCode"> </asp:DropDownList> </td> <td align="right" class="CellStyle"> <asp:Label ID="PTypeLabel" runat="server" Text="Supervision Type" BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px" style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;" BorderColor="Black" Width="110px" ></asp:Label> </td> <td> </td> </tr> <tr> <td style="text-align: right" class="auto-style10"> </td> <td align="right" colspan="2" class="auto-style10" > <asp:DropDownList ID="UserPrivilege" runat="server" Height="32px" style="font-family: 'sakkal Majalla'; font-size: 22px; text-align: right; margin-top: 0px;
    border-style:solid; border-color:Black; margin-left: 0px;" Width="570px"> <asp:ListItem Value="1" Selected="True">Reading Only Direct Units Data</asp:ListItem> <asp:ListItem Value="2">Reading Only Direct Units Data With Editing</asp:ListItem> <asp:ListItem Value="3">Reading Direct Units and Its Belong Units</asp:ListItem> <asp:ListItem Value="4">Reading Direct Units and Its Belong Units With Editing</asp:ListItem> <asp:ListItem Value="5">Reading Direct Units and Its Belongs Units With Editing and Authoring</asp:ListItem> </asp:DropDownList> </td> <td align="right" class="auto-style9"> <asp:Label ID="Label2" runat="server" Text="User Privilege" BorderStyle="None" BorderWidth="0px" ForeColor="Black" Height="35px" style="font-size: 26px; margin-right:5px; font-family: 'Sakkal Majalla'; text-align: right;" BorderColor="Black" Width="130px" ></asp:Label> </td> <td class="auto-style10"> </td> </tr> <tr> <td> </td> <td align="center" colspan="3"> <asp:Button ID="AddNewRecord" runat="server" BackColor="#6262FF" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" ForeColor="White" Height="40px" style="text-align: center; font-size: 24px; margin-top: 16px; margin-bottom: 20px; font-family: 'Sakkal Majalla';" Text="Proceed" Width="131px" /> </td> <td> </td> </tr> </table> <table id="ValidationSummaryTable" runat="server" width="98%"> <tr> <td rowspan="5" align="right"> <asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="ErrorMessage" DisplayMode="List" Height="108px" /> </td> </tr> </table> </div> <div id="ExtraItems" runat="server"> <table id="TmpTable" runat="server"> <tr> <td> <asp:SqlDataSource ID="SDS1" runat="server" ConnectionString="<%$ ConnectionStrings:TrackingConnectionString %>" SelectCommand="SELECT DISTINCT [Name], [Indx] FROM [AdministrationUnits] WHERE ([ReportingTo] = @ReportingTo) ORDER BY [Name]"> <SelectParameters> <asp:SessionParameter Name="ReportingTo" SessionField="SelectedOfficeIndx" Type="Int32" /> </SelectParameters> </asp:SqlDataSource> </td> </tr> <tr> <td> <asp:SqlDataSource ID="SDS2" runat="server" ConnectionString="<%$ ConnectionStrings:TrackingConnectionString %>" SelectCommand="SELECT DISTINCT [Name], [Indx] FROM [Employees]"> </asp:SqlDataSource> </td> </tr> <tr> <td> <asp:SqlDataSource ID="SDS3" runat="server" ConnectionString="<%$ ConnectionStrings:TrackingConnectionString %>" SelectCommand="SELECT [AuthorType], [AuthorTypeCode] FROM [AuthorTypeSource]"> </asp:SqlDataSource> </td> </tr> </table> </div> </asp:Content>

    The [MasterPage.master] code is as following:

    <%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPages_MasterPage" %>
    
    <!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 runat="server">
    
        <asp:ContentPlaceHolder id="head" runat="server">
            
    
        </asp:ContentPlaceHolder>
    
        <style type="text/css">
            
            body
            {
                background-image:url('../Images/TDBackground.jpg');
            } 
               
            .LogosDivStyle
            {
                width:1200px; 
                background-color: transparent;
            }  
            .CpContentDivStyle
            {
                width:1200px;
                margin-bottom:10px; 
                margin-top:1px; 
                margin-left:15px; 
            }  
            .HyperLinkStyle img
            {
                height:40px;
                width:40px;
                vertical-align:top;  
                border-width:1px; 
                border-style:solid;
                border-color:Black;   
                margin-left:0px;
                margin-right:0px;
            } 
            
            
            .HyperLinkStyle
            {
                text-align: left;
                margin-top: 0px;
            }
            .LoginningUserStyle
            {
                border-style: none;
                height: 30px;
                font-size: 30px;
                text-align:center; 
                font-family: SC_AMEEN;
                width: 120px;
                background-color: transparent;
                margin-bottom:10px;
                margin-right:30px;  
                color:#0033CC;
            }
            
            
            .SubMenusStyle1
            {
                border-style: none;
                height: 30px;
                font-size: 25px;
                text-align: right;
                font-family:SC_AMEEN;
                width: 120px;
                background-color:lightblue;
                color: #000000;
                margin-top:0px;
            }
            .SubMenusStyle2
            {
                border-style: none;
                height: 30px;
                font-size: 25px;
                text-align: right;
                font-family:SC_AMEEN;
                width: 200px;
                background-color:lightblue; 
                color: #000000;
                margin-top:0px;
            }
            
            .SiteMapPathStyle
            {
                border-style: none;
                height: 30px;
                font-size: 30px;
                text-align: right;
                font-family: SC_AMEEN;
                width: 350px;
                background-color: transparent;
                color: #0033CC;
            }
            
            .hoverstyle
            {
                font-weight: bold;
            }
            
            .style1
            {
                width: 0.5%;
            }
            
            .SitePathSeperatorStyle img
            {
                background-color:transparent;
                background:none; 
                vertical-align:bottom;    
            }    
            
            .FooterTableStyle
            {
                width:100%;
                text-align: center;
                font-family:Sakkal Majalla;  
                font-size:20px;
                bottom:0; 
                ; 
                
            } 
            
            .ImageDivStyle
            {
                vertical-align:middle;
                width:100%; 
            }  
                 
            
        </style>
    
    </head>
    <body style="height: 40px;" >
        <form id="form1" runat="server">
            
            <div id="LogosDiv"  runat="server" class="LogosDivStyle"  >
                <table width="100%">
                    <tr>
                        <td align="right" width="10%">
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/TrackingLogo.png" 
                            Height="125px" style="text-align: center;" Width="125px" />
                        </td>
                        <td align="center" valign="top"  >
                            <asp:Image ID="Image3" runat="server" Width="275px" Height="125px"   
                            ImageUrl="~/Images/MurasalatLogo.png" />
                        </td>
                        <td align="left" width="10%">
                            <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/MinistryLogo.png" 
                            Height="125px" style="text-align: center;" Width="125px" />
                        </td>
                    </tr>
                </table> 
            </div>
                   
            
            
            
    
            <div id="ImageDiv" runat="server" class="ImageDivStyle" align="center">
                <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" 
                ShowStartingNode="true"  SiteMapProvider="ShortSiteMap" />
            </div>   
    
    
            
    
            <div id="LoginningUserDiv"  runat="server" class="LogosDivStyle"  >
                <table width="100%">
                    <tr>
                        
                                            
                        <td align="right" width="20%">
                        <asp:Menu ID="NavigationMenu" runat="server" DataSourceID="SiteMapDataSource1" onmenuitemdatabound="NavigationMenu_MenuItemDataBound" 
                        Orientation="Horizontal"  StaticEnableDefaultPopOutImage="False" staticsubmenuindent="5" Width="229px">
    
                            <LevelMenuItemStyles>
                                
                                <asp:MenuItemStyle CssClass="LoginningUserStyle" />        
                                <asp:MenuItemStyle CssClass="SubMenusStyle1" />        
                                <asp:MenuItemStyle  CssClass="SubMenusStyle2"/>        
    
                            </LevelMenuItemStyles>
    
                        </asp:Menu>
                        </td>
    
                        <td align="center" style="text-align: left">
                            &nbsp;</td>
    
                        <td width="50%" style="text-align: right; font-family: SC_AMEEN;">
                            <asp:SiteMapPath ID="SiteMapPath1" runat="server" SiteMapProvider="LongSiteMap" 
                            PathSeparator="-" SkipLinkText=""  CssClass="SiteMapPathStyle" CurrentNodeStyle-ForeColor="#0033CC" >
                                <PathSeparatorTemplate>
                                    <asp:Image ID="Image1" Runat="Server"   
                                    ImageUrl="~/images/arrowblue.png" BackColor="Transparent" Height="20px" Width="35px" CssClass="SitePathSeperatorStyle"    />
                                </PathSeparatorTemplate> 
                                <CurrentNodeStyle CssClass="SiteMapPathStyle" />
                                <NodeStyle CssClass="SiteMapPathStyle" />
                            </asp:SiteMapPath>
                        </td>
                    </tr>
                </table> 
            </div>
    
            <div id="CpContentDiv" runat="server" class="CpContentDivStyle"  >
                <table width="100%">
                    <tr>
                        
                        <td align="center">
                            
                            <asp:ContentPlaceHolder id="CpMainContent" runat="server">    
                            </asp:ContentPlaceHolder>
                        </td>
            
                    </tr>
                </table> 
            </div>
    
            <div id="MasterPageFooter" runat="server" class="FooterStyle">
                <table id="FooterTable" runat="server" class="FooterTableStyle" >
                    <tr>
                        <td align="center"  > 
                            <asp:Label ID="Label2" runat="server" 
                            Text="© 2014 وزارة العمل، مملكة البحرين. جميع الحقوق محفوظة." 
                            ></asp:Label>
                        </td>
                    </tr>
                </table> 
            </div> 
    
          
        </form>
            
    </body>
    </html>
    

    Monday, June 13, 2016 10:29 AM

Answers

  • User61956409 posted

    Hi alihusain_77,

    If you’d like to use UpdatePanel control, you could put ScriptManager and UpdatePanel control in “Content2” in master page, and put the content of “Content2” in UpdatePanel control’s ContentTemplate. You could refer to the following link to know the usage of UpdatePanel control.

    https://msdn.microsoft.com/en-us/library/bb386454.aspx

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 14, 2016 2:43 AM