编辑:我发现了我的问题。我在我的母版页的页面加载中使用了这行代码:
ScriptManager.RegisterStartupScript(Page, Me.GetType(), "fadeAllPartners", "fadeAll();", True)
我的母版页联系表和所有子页表中也有这个问题。事实上,我无法让一个更新面板工作。我也尝试删除触发器标签,但没有成功。
我的所有页面都使用母版页,其中包括此处的脚本管理器:
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager" runat="server" />
<div id="pageWrapper">
<asp:ContentPlaceHolder ID="ContentPlaceHolder" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
这是刷新整个页面的表单的一个示例:
<asp:UpdatePanel runat="server" ID="UpdatePanelContacter" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="submitEmail" EventName="Click" />
</Triggers>
<ContentTemplate>
<div runat="server" id="BodyFooterForm" class="formSubmitEmail">
<h4>
<%=Resources.LangueRessources.FooterContactezNous%>
</h4>
<div class="centerFormContact">
<span id="lblCompany" runat="server" >
<%=Resources.LangueRessources.FooterFormContactCie%>
<b id="imgCompany" runat="server" ></b>
</span>
<input runat="server" type="text" id="txtCompany" >
<span runat="server" id="lblNom" >
<%=Resources.LangueRessources.FooterFormContactNom%>
<b id="imgNom" runat="server" ></b>
</span>
<input runat="server" type="text" name="txtNom" id="txtNom">
<span runat="server" id="lblEmail" >
<%=Resources.LangueRessources.FooterFormContactEmail%>
<b id="imgEmail" runat="server" ></b>
</span>
<input runat="server" type="text" name="txtEmail" id="txtEmail" >
<span runat="server" id="lblPhone" >
<%=Resources.LangueRessources.FooterFormContactPhone%>
<b id="imgPhone" runat="server" ></b>
</span>
<input runat="server" type="text" name="txtPhone" id="txtPhone" data-mask="(999) 999-9999" >
<span runat="server" id="lblTextarea" >
<%=Resources.langueRessources.FooterFormContactComments%>
<b id="imgTextArea" runat="server" ></b>
</span>
<textarea runat="server" id="txtTextarea" ></textarea>
<span id="lblEnvoyer" runat="server" >
<b id="imgEnvoyer" runat="server" ></b>
</span>
<asp:Button runat="server" ID="submitEmail" class="submit" OnClientClick="return ValidateContactForm()" OnClick="submitEmail_CLick" />
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<div class="clear">
</div>
谢谢 !