简体   繁体   中英

Syntax html in asp.net + vb.net

This my code

    Dim verifyUrl As String = Request.Url.GetLeftPart(UriPartial.Authority) & Page.ResolveUrl("~/verify.aspx?ID=" & sGUID)
    mail.Body = "<html>" & _
                "<head>" & _
                "<meta http-equiv=""Content-Language"" content=""fr"">" & _
                "<meta http-equiv=""Content-Type"" content=""text/html; charset=windows-1252"">" & _
                "</head>" & _
                "<body>" & _
                " <p>Hello, <%UserName%>. You are receiving this email because you recently created a new account at my" & _
                "site. Before you can login, however, you need to first visit the following link:</p>" & _
                "<p> //////Here put an href whit the value verifyUrl ///// </p>" & _
                "</body>" & _
                "</html>"
                mail.Body = mail.Body.Replace("<%VerifyUrl%>", verifyUrl)
                mail.Body = mail.Body.Replace("<%UserName%>", nom)


      Try for long time to put an like <a href"<%verifyUrl%>"</a> but this not work well................

Please help me to enter this simple html line!!!

Thanks in advance!!

你可以用这个:

<a href='<%VerifyUrl%>'>Click Here</a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM