在发送给忘记密码的用户的SMTP电子邮件的正文标记中,我在vb.net和Visual Studio 2013中有以下内容:
Dim HtmlMessage As AlternateView = AlternateView.CreateAlternateViewFromString("Hello" & <%= strEmailValue %> & ",<br /><br /> " & "To reset your password, please click on this <a style='color:#22BCES5' href=''>link.</a>", Nothing, "text/html" & "<br /><br />")
关于
<%= strEmailValue %>
我收到以下错误:'此处无法使用嵌入式表达式'
strEmailValue是忘记密码的用户的电子邮件。我会用什么代替我的代码?