在模态对话框中更新Gridview [英] Updating Gridview inside modal dialog

查看:101
本文介绍了在模态对话框中更新Gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要在模态对话框中使用gridview进行输入。

所以基本上它会是这样的:

1.按下按钮

2.显示一个模态对话框,里面有gridview

3.用户将开始插入记录(用户需要从查找中选择产品并从数据库中检索一些信息。

4.单击网格上的保存按钮后,它将刷新gridview以包含最新的添加记录。

5.点击提交后,产品列表应保存在临时变量中,以便我可以将其保存到数据库。



任何想法如何在模态对话框中创建可更新的gridview?

感谢您的帮助



编辑:我可以''在我的项目中使用AJAX。

Hi,

I need to make an input using gridview in a modal dialog.
So basically it will be like this:
1. Press a button
2. display a modal dialog with the gridview inside it
3. User will start to insert the record (the user need to choose the product from a lookup and retrieve some of information from the database)
4. Upon clicking the save button on the grid, it will refresh the gridview to include the latest addition record.
5. After clicking submit, then the list of the product should be saved in the temporary variables so that I can save it to database.

Any idea how I can make an updatable gridview inside the modal dialog?
Thanks for any help

I can''t use AJAX in my project.

推荐答案





似乎没有其他选择我必须使用js。

any方式,谢谢你的帮助。真的很感激
Hi,

Seems that there is no other choice and I have to do it using js.
anyway, Thanks for your help. Really appreciate it


没有AJAX就不能这样做。你需要一个UpdatePanel才能让它工作..

这里有一个简单的例子:

http://www.c-sharpcorner.com/UploadFile/b10b91/update-record-in-gridview -using-modal-popup-extender / [ ^ ]
You can''t do this without having AJAX. You''ll need an UpdatePanel to get it worked..
See a simple example is given over here :
http://www.c-sharpcorner.com/UploadFile/b10b91/update-record-in-gridview-using-modal-popup-extender/[^]


这篇关于在模态对话框中更新Gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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