MVC 3中的模型弹出式调用 [英] Model popup call in MVC 3

查看:56
本文介绍了MVC 3中的模型弹出式调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我对MVC不太了解,我想在执行某些操作后从视图或控制器中调用模型弹出窗口
在MVC 3中.任何人都可以给我完整的示例代码.我通常使用这种样本.

< script type = " > 


(函数(){


( ' #dialog').dialog({ autoOpen: false , 宽度: 400 , 可调整大小:错误, 标题:' , 模态: true , 打开:功能(事件,用户界面){ // 加载CreateAlbumPartial操作,该操作将返回 // 部分视图_CreateAlbumPartial


Hi I am not much more aware in MVC,I want to call a model popup from view or controller after some action perfomed
in MVC 3.Can anyone please give me full sample code.

解决方案

It''s more js then a mvc asp.net but still it works in MVC 3. I normally using this kind of sample.

<script type="text/javascript">


(function () {


('#dialog').dialog({ autoOpen: false, width: 400, resizable: false, title: 'hi there', modal: true, open: function(event, ui) { //Load the CreateAlbumPartial action which will return // the partial view _CreateAlbumPartial


这篇关于MVC 3中的模型弹出式调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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