Can someone send me the small piece of code to encode a string into HTML? I have this code in my office but I just forgot to send it to me by email. :) Basically, this is the same code at the HTMLEncode() method of the server object we use in ASP. Thanks.