我正在尝试制作一个简单的Ui5应用程序,其中包含两个视图之间的导航。
初始视图正在加载,但不知何故,下一个/导航视图没有加载。
控制台说
Log.js?eval:456 2022-07-17 19:37:36.263800 Did place the view target 'sap.ui.demo.todo.view.AddTask' with the id '__xmlview1' into the aggregation 'pages' of a control with the id 'container-todo---App--
为什么不填充此控制器方法的View页
public ActionResult Person()
{
testEntities6 testPersons = new testEntities6();
IQueryable<person> persons;
DropDownLst.Items.Clear();
DropDownLst.Items.Add("proba");
persons = from i in testPersons.person
模型视图控制器(MVC)主要关注基于UI的应用程序。在MVC中,当UI (视图)的值发生变化时,模型会通知UI(视图),然后视图决定更新的内容和是否更新。我可以理解的桌面,移动和单页web应用程序,其中有一个持久的UI。
但是,为什么一些流行的后端web框架(如ASP.Net Core、Rails、Django等)在没有UI可更新的情况下使用MVC,一旦呈现并返回了模板化的页面视图?一旦它完成了页面的呈现,后端将不负责UI的更新。
例如,ASP.Net核心将模型称为没有方法的简单数据结构,这些模型映射到例如数据库中的实体。例如:
using System;
using System.Compo