string msg = (string)html.ViewData["Message"];
看到别人的代码,不知道下边这个东西起什么用?
@Html.OperationMessage()
public static MvcHtmlString OperationMessage(this HtmlHelper html)
{
string msg = (string)html.ViewData["Message"];
return string.IsNullOrWhiteSpace(msg) ? MvcHtmlString.Empty : MvcHtmlString.Create(msg + "<br/>");
}