I have started using Server.HtmlEncode to add some kind of security to my little apps. They work fine with it, but I want to verify it's actually encoding so I can show the boss. Is there a way to get the encoded output of a field?
For example, if I have the code below. I want to see the encoded text just so I know it's encoding properly.
lbl1.Text = Server.HtmlEncode(txt1.Text);