zoukankan      html  css  js  c++  java
  • AJAX不刷新页面

    <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                    <asp:GridView ID="GridView1"  CssClass="tablestyle"
                        AutoGenerateColumns="false" ShowFooter="true"  DataKeyNames="PartName"
                        runat="server" onrowdatabound="GridView1_RowDataBound"
                        onrowcreated="GridView1_RowCreated">
                            <AlternatingRowStyle CssClass="altrowstyle" />
                            <HeaderStyle CssClass="headerstyle" />
                            <RowStyle CssClass="rowstyle" />
                            <FooterStyle BackColor="#E8E8EA" />
                        <Columns>
                            <asp:BoundField DataField="Height" HeaderText="重量" FooterText="重量" SortExpression="Height"/>
                            <asp:BoundField DataField="PartName" HeaderText="物品名称" FooterText="物品名称" SortExpression="PartName" ItemStyle-Width="170px"/>
                            <asp:BoundField DataField="Number1" HeaderText="数量" FooterText="数量" SortExpression="Number1" ItemStyle-Width="150px"/>
                            <asp:BoundField DataField="Price1" HeaderText="金额" SortExpression="Price1" ItemStyle-Width="150px"/>
                        </Columns>
                    </asp:GridView>
                    </ContentTemplate>

                </asp:UpdatePanel>

     from 后面添加:

    <asp:ScriptManager ID="ScriptManager1" runat="server" />

  • 相关阅读:
    如何解决秒杀的性能问题和超卖的讨论
    Redis作者谈Redis应用场景
    Net开源工作流Roadflow的使用与集成
    VisualStudioOnline协同工作流程
    中文乱码?不,是 HTML 实体编码!(转)
    Nginx搭建反向代理服务器过程详解(转)
    2016年1月15日面试某互联网公司总结(转)
    浏览器缓存知识小结及应用(转)
    Gradle多项目配置的一个demo
    Android getResources的作用和须要注意点
  • 原文地址:https://www.cnblogs.com/hyd309/p/1492891.html
Copyright © 2011-2022 走看看