By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,408 Members | 1,840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,408 IT Pros & Developers. It's quick & easy.

secure textbox

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

Thanks,
d.
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"DDK" <dd*******@hotmail.com> wrote in message
news:Oq**************@tk2msftngp13.phx.gbl...
How would I let users input HTML in a textbox, while securing it from script attacks with ASP.NET + C#?

Thanks,
d.

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.