MVC3中的部分页面更新 [英] Partial Page Update in MVC3

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

问题描述

大家好,

我对MVC3中的部分页面更新有一些误解.
我在一个网页中设置了两个div.第一个div有两个文本框和一个提交按钮.
另一个div具有Jquery数据表(http://jquery-datatables-editable.googlecode.com/svn/trunk/index.html).
我的问题是,当我在文本框中键入内容并按提交按钮时.
两个文本框中的所有信息都将插入数据库.
同时,位于另一个div中的表将显示最新信息.
但是我想使用Ajax,并且我不希望从服务器发回任何邮件.

请启发我
:|

Hi All,

i have some misunderstanding about partial page update in MVC3.
i set up two div in one web page. the first div have two text boxes and one submit button.
another div have Jquery Datatable (http://jquery-datatables-editable.googlecode.com/svn/trunk/index.html).
my problem is when i key in something in text boxes and press submit button.
all the information inside two text boxes will be inserted into database.
at the same time, the table located in another div will show the latest information.
But i want to use Ajax and i don''t want any post back from server.

Pls enlighten me
:|

推荐答案

看看以下有关如何进行部分页面更新的文章:
ASP.NET MVC3 Razor中的部分页面实现 [ ^ ]
ASP.NET MVC 3中的部分视图/Razor视图引擎 [ ^ ]
使用jQuery刷新部分页面 [
Have a look at the following articles on how to have partial page update:
Partial Page implementations in ASP.NET MVC3 Razor[^]
Partial views in ASP.NET MVC 3 w/the Razor view engine[^]
Partial page refresh using jQuery[^]


这篇关于MVC3中的部分页面更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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