关闭弹出窗口后不回发地填充gridview [英] filling gridview after closing popup window without postback

查看:75
本文介绍了关闭弹出窗口后不回发地填充gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个带有gridview的用户控件和一个用于打开弹出窗口的按钮.

在弹出窗口中,我将数据填充到数据表中.
我想在关闭弹出窗口后填充网格(使用该数据表),但是我不想回发网格页面.

如何在不回发的情况下填充网格?

请帮帮我.

Hello All,

I have a user control with a gridview and a button to open pop up window.

In the pop up window I fill data to a data table.
I want to fill the grid (using that datatable) after closing popup but I dont want to postback the grid page.

How can I fill the grid without postback?

Please help me.

Thanks in Advance.

推荐答案

最好的方法是使用更新面板,在这种情况下页面使用ajax,因此它将是部分回发
The best method is to use an update pannel in this case the page uses ajax so the it would be a partial post back Click Here


尝试此操作


在页面指令中输入``smartnavigation ="true";
try this


in page directive put ''smartnavigation="true" ;


供参考

http://www.mindfiresolutions.com/To -refresh-Gridview-Data-regularly-without-any-page--postback-158.php [从弹出窗口刷新父页面上的GridView控件 [
for your reference

http://www.mindfiresolutions.com/To-refresh-Gridview-Data-regularly-without-any-page--postback-158.php[^]

Refresh a GridView control on the parent page, from a pop up window[^]

Hope it helps


这篇关于关闭弹出窗口后不回发地填充gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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