日期:2014-05-17  浏览次数:20525 次

web页面 gridview自动刷新的问题
用vs2010自带的ajax控件自动刷新gridview,刚开始测试是成功的,后来系统正式运行后自动刷新失败,贴上前台代码(body块),请各位大神帮忙看看是哪里的问题?还有自动刷新失败是否关系到后台代码?
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="tool">
        <table>
            <tr>
                <td>
                </td>
                <td id="tooltext">
                    XXXX
                </td>
            </tr>
        </table>
    </div>
     
    <div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Timer ID="Timer1" runat="server" Interval="1000">
            </asp:Timer>
            <div  style="margin-top:3px">
                <asp:GridView ID="gdvRead" runat="server" AutoGenerateColumns="False" CellPadding="1"
                    ForeColor="#333333" GridLines="None" AllowPaging="True" PageSize="15" Font-Size="11px"
                    HorizontalAlign="Center" OnRowDataBound="gdvRead_RowDataBound" 
                     >
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="code" HeaderText="XX" ReadOnly="True">
                            <ItemStyle W