I want to prevent script injection from my input controls. So after lots of research i found one solution
<httpRuntime requestValidationMode="2.0"/>
in web.config. And at the time of saving it to the database, encode that data and save.
But if my textbox contain any malicious data, I am able to save that data (using Server.HtmlEncode(data)) in database and show to the user.
It is working fine with all the browsers except Chrome. In chrome, it's not firing any event after that.
Could you please tell me about possible solutions to this. I'm certainly open to alternatives