如何在另一个页面的一个页面中调用网格绑定方法
问题描述:
我有一个包含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.