如何在另一个页面的一个页面中调用网格绑定方法 [英] How to call grid bind method in one page from another page

查看:62
本文介绍了如何在另一个页面的一个页面中调用网格绑定方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含gridview和bindgridview()方法的页面。当我点击此页面上的打印按钮时,它会弹出一个弹出的报告。一旦弹出报告,我想调用bindgridview(我再怎么办...?请帮帮我..

提前谢谢

I have a page which contains a gridview and a bindgridview() method .When i click print button on this page ,it will pop up a report in popup.Once the report is popped up ,I want to call the bindgridview() method again.How can i do this...?Please help me..
Thanks in advance

推荐答案

你可以''吨。 BindGridView发生在服务器上。如果要更新数据,则需要刷新页面或通过AJAX调用获取数据。显然,你不能从客户端调用服务器方法。



显示弹出窗口的代码可以进行AJAX调用以更新主页上的数据用同样的方法。
You can''t. BindGridView happens on the server. You need to refresh the page or get the data via an AJAX call if you want to update the data. You can''t call a server method from the client, obviously.

Your code that shows the popup, can make an AJAX call to update data on the main page in the same method.


这篇关于如何在另一个页面的一个页面中调用网格绑定方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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