蛋疼的2.0。。都什么年代了,无法忍受。
求2.0 局部更新代码,或者插件
要Demo

解决方案 »

  1.   

    下载个asp.net ajax 1.0,安装,使用ajax控件即可。紧跟form控件后放ScriptManager,然后拖一个UpdatePanel,把要局部更新的东西放入,就可以了。
      

  2.   

    我现在就是用UpdatePanel做的局部刷新,可是就是等于是空气。
      

  3.   

    ajaxhttp://www.cnblogs.com/Terrylee/archive/2006/11/12/558683.html
      

  4.   

    ajax 我当然第一反应。
    可是你们看看下边什么地方出错了呢?它为什么还是页面刷新呢?<tr>
                <td class="tr" style="width:101px; text-align:right; vertical-align:top">
                    类别</td>
                <td style="text-align:left">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    1、<asp:DropDownList ID="Class1" Width="300px" runat="server" DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="Class1_SelectedIndexChanged" AutoPostBack="True">
                    </asp:DropDownList><br />
                    2、<asp:DropDownList ID="Class2" Width="300px" runat="server" DataTextField="Name" DataValueField="Id">
                    </asp:DropDownList><br />
                    3、<asp:DropDownList ID="Class3" Width="300px" runat="server" DataTextField="Name" DataValueField="Id">
                    </asp:DropDownList><br />
                    4、<asp:DropDownList ID="Class4" Width="300px" runat="server" DataTextField="Name" DataValueField="Id">
                    </asp:DropDownList><br />
                    5、<asp:DropDownList ID="Class5" Width="300px" runat="server" DataTextField="Name" DataValueField="Id">
                    </asp:DropDownList><br />
                    6、<asp:DropDownList ID="Class6" Width="300px" runat="server">
                    </asp:DropDownList>
                    </ContentTemplate>
                    </asp:UpdatePanel>
                    </td>
                  
            </tr>看看什么地方出错了。我自己无法找到原因
      

  5.   


    <asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
      <div>
      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
      <asp:DropDownList ID="ddlLB" runat="server" Width="15%" AutoPostBack="True" OnSelectedIndexChanged="ddlLB_SelectedIndexChanged">
      </asp:DropDownList>
      <asp:DropDownList ID="ddlChild" runat="server" Width="20%">
      </asp:DropDownList>
      </ContentTemplate>
      </asp:UpdatePanel>
      </div>  
      

  6.   

    两件事。一,应该设置UpdateMode为Conditional模式。
    二,不是把整个页面用一个UpdatePanel包起来,然后整个页面“局部”刷新。而是一个页面上通常有几个,甚至上百个UpdatePanel。这才叫看出局部刷新的效果。
      

  7.   

    可以用Jquery中的.ajax方法实现,LZ可以看看Jquery中的Ajax实现方法……
      

  8.   

    asp.net ajax 很方便哦,不过没那么用过一般用ajax什么的
      

  9.   


    这个用jquery的 麻烦死了直接还是 net的  ajax 简单多了