Link to home
Create AccountLog in
Avatar of JCWEBHOST
JCWEBHOST

asked on

ToolkitScriptManager

hey guys , i have a problem with asp ToolkitScriptManager in the master page and content page.
i have a master page with an update panel.

now every time i click a button in the content page, i have to click it twice for it to fire.

can any one help me?
Avatar of JCWEBHOST
JCWEBHOST

ASKER

here is my matser page code
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!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">
    <title>Master Page</title>
    <link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" type="image/x-icon" href="icon/favicon.ico">
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">

    <script type="text/javascript" language="javascript">
		var ModalProgress = '<%= ModalProgress.ClientID %>';         
    </script>

    <script src="js/jsUpdateProgress.js" type="text/javascript"></script>

    <asp:Panel ID="panelUpdateProgress" runat="server" CssClass="updateProgress" Style="display: none;">
        <asp:UpdateProgress ID="UpdateProg1" DisplayAfter="0" runat="server">
            <ProgressTemplate>
                &nbsp;<asp:Image ID="Image1" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/loading.gif" />
                Please wait....
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:ModalPopupExtender ID="ModalProgress" runat="server" BackgroundCssClass="modalBackground"
            DynamicServicePath="" Enabled="True" PopupControlID="panelUpdateProgress" TargetControlID="UpdateProg1">
        </asp:ModalPopupExtender>
    </asp:Panel>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>
            <div id="header">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
            </div>
            <div id="navigation">
                <div id="inside_nav_top_trans">
                </div>
                <div id="inside_nav_middle_transp">
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder_navigation" runat="server">
                    </asp:ContentPlaceHolder>
                </div>
                <div id="inside_nav_bottom_transp">
                </div>
            </div>
            <table id="main_table" cellpadding="0" cellspacing="0">
                <tr>
                    <td id="main_table_tl">
                    </td>
                    <td id="main_table_tm">
                    </td>
                    <td id="main_table_tr">
                    </td>
                </tr>
                <tr>
                    <td id="main_left">
                    </td>
                    <td id="main_middle">
                        <asp:ContentPlaceHolder ID="ContentPlaceHolder_contents" runat="server">
                            <div style="display: none">
                                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" ScriptMode="Auto">
                                </asp:ToolkitScriptManager>
                            </div>
                        </asp:ContentPlaceHolder>
                    </td>
                    <td id="main_right">
                    </td>
                </tr>
                <tr>
                    <td id="main_table_bl">
                    </td>
                    <td id="main_table_bm">
                    </td>
                    <td id="main_table_br">
                    </td>
                </tr>
            </table>
            <div id="footer">
                <div class="footer_left">
                </div>
                <div class="footer_right">
                    © Studentz 2011</div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Sorry but that post never help me? i still have the problem