MVC剃刀视图内容刷新 [英] MVC razor view content refreshing

查看:137
本文介绍了MVC剃刀视图内容刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我开发了MVC4 Razor视图应用程序。我在页面中有两种过程。插入,更新删除,隐藏和显示输入字段,使用右侧显示左侧和iframe内容。何时接近插入,更新,删除,隐藏和显示事件。孔页面已刷新。再次重新加载iframe内容。



我的问题是:如果有可能我点击事件左侧部分只刷新?



问候

Karthikeyan。

Hi all,
i have develop the MVC4 Razor view application. i have two kind of process in a Page. Insert,update delete, hide and Show input fields, showing Left side and iframe content using right side. when am approach the insert, update,delete, hide and show events. the hole page was refreshed.so again reload the iframe contents.

My question is: if it''s possible can i click the events the left side portion only refreshed?

Regards
Karthikeyan.

推荐答案

如果要求是部分页面刷新然后我的建议是你可以使用ajax。意味着如果你点击然后你去服务器进行任何异步方式的操作并从你的ajax回调中获取结果并用javascript刷新你的页面部分。您可以在所有ajax进程中获取jquery的帮助。
If requirement is "Portion of the Page refresh" then my suggestion is you can use ajax. Means if you click then you to to server for any operation with asynchronous way and get result from your ajax callback and refresh your page portion with javascript. You can take jquery''s help for all ajax process.


这篇关于MVC剃刀视图内容刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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