通过JQuery从弹出窗口更新数据库 [英] updation of database from popup window through JQuery

查看:65
本文介绍了通过JQuery从弹出窗口更新数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不通过jQuery刷新页面的情况下将数据从弹出窗口插入db后如何更新网页中的网格.


在这种情况下,amyone可以为我提供帮助.!

How to update grid in a web page after inserting data into db from a popup window without refreshing page through jQuery.


amyone can help me in this case.!

推荐答案

我可以想到两种方式.
1)将网格放在ASP.NET更新面板中,并在关闭弹出窗口后刷新它.
2)使用AJAX查询来检索数据并在客户端刷新.

这应该有助于#1 http://weblogs.asp.net/jeffreyzhao/archive/2008/04/26/refresh-the-updatepanel-using-javascript-code.aspx [ http://msdn.microsoft.com/en-us/magazine/ee819084.aspx [ ^ ]
Two ways that I can think of.
1) Have the grid inside an ASP.NET Update Panel and refresh this after closing the popup.
2) Use an AJAX query to retrieve data and refresh on the client-side.

This should help with #1, http://weblogs.asp.net/jeffreyzhao/archive/2008/04/26/refresh-the-updatepanel-using-javascript-code.aspx[^]

#2 could be more complicated depending your circumstances.

If you are using, or can use, ASP.NET 4.0, this might be an option, http://msdn.microsoft.com/en-us/magazine/ee819084.aspx[^]


这篇关于通过JQuery从弹出窗口更新数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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