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