【问题标题】:In IE11,IE10 Page postbacks occur when button is clicked在 IE11 中,IE10 页面回发在单击按钮时发生
【发布时间】:2014-06-24 06:36:20
【问题描述】:

在我的从本地回发运行的代码中,按钮触发单击时没有发生,但是当我通过生产 url 运行并单击按钮完成回发时发生。如何在 IE11、IE10 中处理页面回发。在所有其他浏览器中它都有效没有回发页面很好。我用谷歌搜索没有得到 IE 的解决方案。

【问题讨论】:

  • 在你的问题中加入一些相关的代码。就像这是按钮,我已经写了这段代码等。

标签: c# asp.net internet-explorer autocomplete enter


【解决方案1】:

将所有控件保留在更新面板中

  <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:Button ID="Button1" runat="server" Text="Button" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

</form>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多