处理整页回页在asp.net网页上 [英] handling full page Postback on asp.net webpage

查看:65
本文介绍了处理整页回页在asp.net网页上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我在asp.net网页上使用更新面板后仍然有整页回发,有谁知道可能是什么原因?这是我的代码:





hello everyone, i am still having a full page postback after using an updatepanel on asp.net webpage, does anyone know what might be the cause? here is my code:


<asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
    <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True"

                    style="z-index: 1; left: 548px; top: 366px; position: absolute">
                    <asp:ListItem>---Select---</asp:ListItem>
                    <asp:ListItem>True</asp:ListItem>
                    <asp:ListItem>False</asp:ListItem>
                </asp:DropDownList>

 </ContentTemplate>
 </asp:UpdatePanel>

推荐答案

Try,

  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
    <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True"

                    style="z-index: 1; left: 548px; top: 366px; position: absolute">
                    <asp:ListItem>---Select---</asp:ListItem>
                    <asp:ListItem>True</asp:ListItem>
                    <asp:ListItem>False</asp:ListItem>
    </asp:DropDownList>
 </ContentTemplate>
<Triggers>
  <asp:AsyncPostBackTrigger ControlID="your control which postback" EventName="event name" />
  </Triggers>
 </asp:UpdatePanel>







希望它有所帮助。




Hope it helps.


这篇关于处理整页回页在asp.net网页上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆