Happy Friday, colleagues!
Not so happy for yours truly...
Subject line says what the problem I have. Here's the code (exactly as in the book "Murach's ASP.NET 4.6 Web Programming with C# 2015", pg. 271, fig. 7-13):
Let alone it's hard not to screw up typing this expression (in bold, red), but VS tells me... well, picture (Design screen) worth 1K words:
I check all chars in this regex 3 times - exact match to the one in the book, so...
Where do I err?
Please advise!
AHWBGA!
Regards,
Ilya
Not so happy for yours truly...
Subject line says what the problem I have. Here's the code (exactly as in the book "Murach's ASP.NET 4.6 Web Programming with C# 2015", pg. 271, fig. 7-13):
Code:
<asp:RegularExpressionValidator ID="revEmail1" runat="server" ErrorMessage="Email address" CssClass="text-danger" Display="Dynamic"
ValidationExpression="[COLOR=#CC0000][b]\w([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.])\w+)*[/b][/color]"
ControlToValidate="txtEmail1">Must be a valid Email address>
</asp:RegularExpressionValidator>
Let alone it's hard not to screw up typing this expression (in bold, red), but VS tells me... well, picture (Design screen) worth 1K words:
I check all chars in this regex 3 times - exact match to the one in the book, so...
Where do I err?
Please advise!
AHWBGA!
Regards,
Ilya