Hello
In this line of vb.net code (ASP.NET):

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 />")

I get an error here '>' (just before "To rest your password...") - it says 'Expression expected', and here '#22' (colour code) - it says 'Syntax error'.
What should I be coding, please?
Thank you.

To me this looks like you wanted quote marks in your string.

Look for the <br and the comma before that and the Hello string stopped there.

Till you get a handle on this, try putting your string into a string variable to help you see where the issue is.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.