@{ string RightInfo = ViewBag.RightInfo as string; string right = ViewBag.right as string; } 消息模板
@{Dictionary ColDic = new MySystem.DictionaryClass().getColDic();}
@if (RightInfo.Contains("," + right + "_add,")) { } @if (RightInfo.Contains("," + right + "_delete,")) { } @if (RightInfo.Contains("," + right + "_edit,")) { }