I have 2 fields a label and a Textbox.
Q1. HTML encoding should be done while saving data into database or while displaying in the aspx page?
Q2. HTML encoded label text is displayed properly in browser like as asd < pqr But in textbox it is showing ascii value of < sign.
As textboxes in asp.net are already encoded by default, should we decode it before displaying on page?
Q3.If Textbox value is decoded while displaying then what is security impact?
Q4. If I have two way binded Textbox in edittemplateitem.how to decode it's value while displaying.