0

My current project is CRM based project, all the customer queries are stored in table.

All those records we are displaying in obout grid. To see the new query(new record) every time we are refreshing the entire page . Is their any way to show the new records with out postback

As the same functionality for mail inbox , when we receive the new mail it just show in out inbox without any post back . how to achieve this..

Thank You.

4

3 回答 3

2

您是否尝试过使用更新面板?

<asp:ScriptManager runat="server" />

<asp:UpdatePanel runat="server">
    <ContentTemplate>
       <obout:Grid id="grid1" runat="server"  CallbackMode="false" ... />
       <asp:Timer runat="server" id="Timer1" Interval="10000" OnTick="Timer1_Tick"></asp:Timer>
    </ContentTemplate>
</asp:UpdatePanel>

如果网格已经存在,对您来说将是更简单的解决方案。更多信息http://www.asp.net/web-forms/tutorials/aspnet-ajax

要自动刷新更新面板,请在更新面板中放置一个Timer控件,并使用您希望刷新网格的时间(以毫秒为单位)设置 Interval 属性。

于 2013-02-20T17:13:57.437 回答
0

您可以使用AJAX http://www.asp.net/ajax。我向您推荐 JQuery 库http://jquery.com/来完成您的任务。

使用 JQuery ( http://api.jquery.com/category/ajax/ ) 的 AJAX 示例:

$.get('ajax/test.html', function(data) {
    $('.result').html(data);
    alert('Load was performed.');
});
于 2013-02-20T17:13:10.890 回答
0

另请使用 jquery 和 Jqgrid 查看 SignalR。可以将通知推送到浏览器。谢谢

于 2013-02-20T17:40:37.933 回答