MVC 3.0中的模态窗口 [英] Modal Window in mvc 3.0

查看:75
本文介绍了MVC 3.0中的模态窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

任何人都可以让我知道如何在mvc 3.0中的每个服务器调用中创建一个模式窗口.
我知道我需要使用jquery模态窗口,当我需要加载部分视图时可以使用,但是当需要呈现一个全新的视图时,我就不能使用它.

请帮忙!!!

在此先感谢

Hi All,

Can anyone please let me know how can I have a modal window at my every server call in mvc 3.0

I know I need to use jquery modal window, I am able to use when I need to load a partial view, but not able to use the same, when a complete new needs to be rendered.

Please help!!!

Thanks in advance

推荐答案

//Javascript code
function showMessageDetails() {


.ajax({ 网址:' /Position/SelectedOption/', 类型:' POST', 数据:{id:inputTextValue}, 成功:功能(结果){
.ajax({ url: '/Position/SelectedOption/', type: 'POST', data: { id: inputTextValue}, success: function (result) {


.post(" /Position/SelectedOption/" + inputTextValue,
.post("/Position/SelectedOption/" + inputTextValue, function (data) {


这篇关于MVC 3.0中的模态窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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