在对话框中加载局部视图 [英] Load partial view in dialog box

查看:145
本文介绍了在对话框中加载局部视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI Friends,

我是MVC 3.0的新手
我想在jquery对话框中加载局部视图
我做了一些如下的代码

HI Friends,

I am new to MVC 3.0
I want to load the partial view in the jquery dialog
i have done some code which is as follows

function showdate() {
          $('<div id="PT"></div>').appendTo('body')
          debugger;
          $('#PT').dialog({
              width: 550,
              height: 350,
              position: 'center',
              modal: true,
              title: "Data Entry Details",
              resizable: false,
              open: function (event, ui) {

                 $(this).load("@Url.Action("DataEntryPrintData")");
              }
          });
      }


我的

$(this).load("@Url.Action("DataEntryPrintData")");

行未加载部分视图

我说的对吗请帮我解决这个问题

谢谢

line is not loading the partial view

Am i going right Please help me to solve this issue

Thanks

推荐答案

(' < div id ="PT></div>').appendTo( body') 调试器;
('<div id="PT"></div>').appendTo('body') debugger;


(' 550 , 高度: 350 , 位置:' 居中', 模态: true , 标题:" , 可调整大小:错误, 打开:功能(事件,用户界面){
('#PT').dialog({ width: 550, height: 350, position: 'center', modal: true, title: "Data Entry Details", resizable: false, open: function (event, ui) {


( ).load(" DataEntryPrintData " ); } }); }
(this).load("@Url.Action("DataEntryPrintData")"); } }); }


我的


这篇关于在对话框中加载局部视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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