secure textbox

D

DDK

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

Thanks,
d.
 
W

William F. Robertson, Jr.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top