在Html.ActionLink中运用二维判断语句

@Html.ActionLink("公告信息", "notice", "article", null, new { @class = ViewData["getclass"]!="notice"?"":"currclass" })
@Html.ActionLink("历史查询", "index", "home", new { hd = DateTime.Today.ToString("yyyy-MM-dd") }, new { @class = ViewData["getclass"] == "order" && Request["hd"] != null ? "currclass" : "" })

 

posted @ 2013-06-19 11:00  James·wang  阅读(459)  评论(0编辑  收藏  举报