像这样在Controller中分配值.
ViewBag["isAdmin"]=true;
错误:
Cannot apply indexing with [] to an expression of type 'System.Dynamic.DynamicObject'
以前有人有这个吗?
if(ViewBag.isAdmin) { //do stuff }