我有一个像这样的 MVC3 HtmlHelper 扩展:
public static MvcHtmlString ShowInfoBar(this HtmlHelper helper, string message, InfoMessageType messageType)
{
return MvcHtmlString.Create(String.Format(@"<script type=""text/javascript"">$(document).ready(function () { gtg.core.showInfoBar('{0}', '{1}'}; );</script>", message, messageType.ToString().ToLower()));
}
的message
值为"The product "Product Name" was saved successfully."
的messageType
值为info
。
它一直在说Input string was not in the correct format.
我卡住了??