Asp.net mvc 4 如何通过调用action方法将强类型视图打开到弹出控件中

Asp.net mvc 4 如何通过调用action方法将强类型视图打开到弹出控件中,asp.net-mvc-4,devexpress,Asp.net Mvc 4,Devexpress,我有一个包含gridview的父页面。当我右键单击网格视图中的任意一行时,关联菜单将打开。通过选择上下文菜单,我想打开带有强类型视图的弹出窗口。我打开了带有强类型视图的弹出窗口。 但问题是,我必须在父视图模型中创建数据成员,以便将模型对象传递给弹出视图。我不想调用特定的操作来打开弹出窗口中的视图。因为一个父视图可以打开多个弹出窗口,所以对于所有弹出窗口,我必须在父视图模型中创建一个数据成员。 例如 我想通过从网格中选择客户记录打开发送产品信息弹出窗口 控制器 public class Pro

我有一个包含gridview的父页面。当我右键单击网格视图中的任意一行时,关联菜单将打开。通过选择上下文菜单,我想打开带有强类型视图的弹出窗口。我打开了带有强类型视图的弹出窗口。 但问题是,我必须在父视图模型中创建数据成员,以便将模型对象传递给弹出视图。我不想调用特定的操作来打开弹出窗口中的视图。因为一个父视图可以打开多个弹出窗口,所以对于所有弹出窗口,我必须在父视图模型中创建一个数据成员。 例如 我想通过从网格中选择客户记录打开发送产品信息弹出窗口

控制器

  public class ProductController : Controller
    {
      public ViewResult SendProductInformation()
        {
            ProductModel objProductModel  = new ProductModel ();
            return View(objProductModel  );
        }
   [HttpPost] 
      public ViewResult SendProductInformation()
        {
            ProductModel objProductModel  = new ProductModel ();
            return View(objProductModel  );
        }
}
看法

但是当我使用Html.RenderAction(“SendProductInformation”,“Product”)时,popup Controll给出了Html.RenderAction(“SendProductInformation”,Model.productInfo)的错误,它可以工作 但我必须传递模型对象

 Please give me solution to open popup with strongly type view by calling SendProductInformation action method .

这是因为“产品”作为参数传递给控制器。当我使用Html.RenderAction(actionName:“action”,controllerName:“controller”)代码时,在加载父页面时调用action方法,&在firefox中,我遇到以下错误“未捕获引用错误:未定义MVCxClientNavBar”这是一个javascript错误?如果是,您可以从firebug提供此错误的stacktrace吗?同时,请尝试检查在何处调用DevXpress客户端API。
@Html.DevExpress().PopupControl(
    settings =>
    {
        settings.Name = "pcSendProductInformation";
        settings.Width = 1000;
        settings.Height = 350;
        settings.HeaderText = "Send Product Information";
        settings.Styles.Header.HorizontalAlign = System.Web.UI.WebControls.HorizontalAlign.Center;
        settings.Styles.Header.VerticalAlign = System.Web.UI.WebControls.VerticalAlign.Middle;
        settings.Styles.Header.Font.Size = 10;
        settings.Modal = true;
        settings.ShowHeader = true;
        settings.ShowCloseButton = true;
        settings.CloseAction = DevExpress.Web.ASPxClasses.CloseAction.CloseButton;
        settings.Left = 1245;
        settings.Top = 300;
        settings.Styles.ModalBackground.BackColor = System.Drawing.Color.Transparent;
        settings.SetContent(() =>
            Html.RenderAction("SendProductInformation","Product")
            );
    }).GetHtml()
 Please give me solution to open popup with strongly type view by calling SendProductInformation action method .