我正在制作示例程序,以显示来自此站点的scheduler-net: http://scheduler-net.com/
我有一个用控制器开发的主页。 调度程序日历在另一个控制器中。 现在我需要将调度程序日历放在homepagecontroller.cs的主页中
我试图将控制从一个动作转移到另一个动作,但只能在同一个控制器下进行。 根据这个参考: how can i transfer information of one view to another?
如何将从一个控制器开发的调度程序日历放置到homecontroller。 或者可以避免使用calendercontroller.cs并将其置于家庭控制器本身。
public ActionResult Index()
{
var scheduler = new DHXScheduler(this); //initializes dhtmlxScheduler
scheduler.LoadData = true;// allows loading data
scheduler.EnableDataprocessor = true;// enables DataProcessor in order to enable implementation CRUD operations
return View(scheduler);
}
答案 0 :(得分:0)
您可以在视图中将其渲染为部分。把它放在views / Home / Index.cshtml:
中@{
Html.RenderAction("Index", "SchedulerController");
}
显然,用正确的名称替换Index和SchedulerController。