【发布时间】:2013-03-06 13:53:51
【问题描述】:
将 mailto 添加到此 ASP.NET MVC3 代码的正确语法是什么。这不起作用,使用双引号也不起作用:
ModelState.AddModelError("", "We could not locate the email address you entered. Please check the email address. If you believe it is correct, please contact us by sending an email to <a href='mailto:support@abc.com'>Support</a> from the email address you are attempting to use.");
【问题讨论】:
-
你的意思是“不起作用”?你得到什么 HTML?
-
这是浏览器中显示的内容:发送给支持的电子邮件
-
所以这意味着文本正在服务器端进行编码.. 担心除了添加全局 JavaScript 将其转换为实际链接之外您无能为力。如果可行,请告诉我,我会提供样品。
标签: asp.net asp.net-mvc asp.net-mvc-3