基于JQuery的数据列表,无需刷新页面。 [英] JQuery - based data listing without page refreshing.

查看:60
本文介绍了基于JQuery的数据列表,无需刷新页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





任何人都可以帮助并指导我在MVC4中进行基于JQuery的数据列表而无需刷新页面。网格中的数据必须自动刷新。



我有数据列表视图,其中我有用户数据:

名称

用户名

密码

然后我在该视图中也有一个buuton。当我点击该按钮弹出窗口时,我可以在其中输入新用户并保存。当我保存数据时应该在网格中自动刷新。





请有人帮助我。

Hi,

Can anyone help and guide me to do JQuery - based data listing without page refreshing in MVC4. Data in the grid has to be automatically refreshed.

I have data listing view in which i have user data:
Name
Username
Password
Then i also have a buuton in that view. When i click that button a popup comes and i can enter new user in it and save. When i save data should be automatically refreshed in grid.


Please anyone help me.

推荐答案

您需要更改对Ajax的调用,还需要将Grid放在局部视图中并使用Ajax加载部分视图。下面的链接将帮助您使用Ajax加载网格数据。 br />
http://fromjami.wordpress.com/2013/05/26/load-partial-view-as-html-by-using-jquery-ajax-in-asp-net-mvc/ [ ^ ]



希望这会有所帮助
You need to change the call to Ajax and also you need to put the Grid in partial view and load the Partial View using Ajax.The below link will help you to load the grid data by using Ajax.
http://fromjami.wordpress.com/2013/05/26/load-partial-view-as-html-by-using-jquery-ajax-in-asp-net-mvc/[^]

Hope this helps


这篇关于基于JQuery的数据列表,无需刷新页面。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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