使用GridView,Entity DataSource和Jquery Dialog进行CRUD操作? [英] CRUD operations with GridView, Entity DataSource and Jquery Dialog?

查看:83
本文介绍了使用GridView,Entity DataSource和Jquery Dialog进行CRUD操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道是否可以使用编辑,删除以及使用AJAX POST和JSON添加操作的GridView。



当点击任一CRUD按钮时,它会打开一个Jquery对话框,其中包含要插入/更新和删除的字段和按钮。



任何例子都将不胜感激。



谢谢





我尝试编写代码,请参阅解决方案部分中的以下帖子。但是当点击编辑时,它会弹出对话框,但没有数据......我还缺少什么?

解决方案

通过在网格视图上使用RowDataBound事件将数据绑定到要在对话框中显示的控件来解决它。对话框上的保存按钮执行Ajax帖子以提交数据。一切都很好。 :)

Hi,

I was wondering if its possible to have a GridView with Edit, Delete and maybe Add operations using AJAX POST and JSON.

When either of the CRUD buttons are clicked it opens a Jquery Dialog with the fields and buttons to insert/update and delete.

Any examples would be appreciated.

Thanks


I have attempted to write the code, see below post in the solutions section.But when ''Edit'' is clicked it brings up the dialog but without the data..am i missing anything more?

解决方案

Solved it by using RowDataBound event on the Grid view to bind data to the controls to be displayed in the dialog. Save button on the dialog does an Ajax post to submit data. Its all working great. :)


这篇关于使用GridView,Entity DataSource和Jquery Dialog进行CRUD操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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