Disallowing HTML Tags (JScripts) from being entered

H

Henry

Hi guys,

I was wondering if anyone knows if the .NET framework has a library or
methods that I can use to diallow users from entering HTML tags and more
importantly JavaScript into textboxes and being stored in the database.

Thank you in advance.

Henry
 
M

M. Burnett

ASP.NET automatically blocks HTML input in a form. This setting is an
attribute of the <pages> element in machine.config. You can also disable it
on a per-page basis with this tag on the page itself:
<% @ Page validateRequest="True" %>







Mark Burnett
Windows Server MVP - IIS
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top