HTML encode is very important as it can help to prevent XSS and HTML injection attack.Before asp.net 4, developer will need to use , <%= Server.HtmlEncode(what.ever.message) %> Server.HtmlEncode function to encode the message.Now, with ASP.NET 4, you can use <% : what.ever.message ...
[More]