secure textbox

  • Thread starter Thread starter DDK
  • Start date Start date
D

DDK

How would I let users input HTML in a textbox, while securing it from script
attacks with ASP.NET + C#?

Thanks,
d.
 
One, placing a "<script" in a text box will bomb a typical installation of
asp.net.

You can wire to the onblur event for the text box and replace all
"<(anychar)" with "< (anychar)" and then inspect for "<script" tag and
remove them.

bill
 
Back
Top