您的位置:首页 > Web前端 > HTML

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

2013-06-19 11:00 204 查看
@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" : "" })
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: