你试过使用视图模型而不是ViewData吗?以“For”和“lambda”表达式结尾的强类型助手无法使用弱类型的结构(如ViewData)。我个人不使用ViewData / ViewBag ...
確定! 回上一頁