Page Validation - list of restricted words

D

Dmitri Shvetsov

Hi All,

Does somebody know where can I get the full list of these restrictions?

I wrote an aspx page in VS2003/C#. When user answers my questions (for some
MSSQL oriented database) at this page his answers should be sent to the IIS
and finally all these strings should be validated (by .NET ?) for some
predefined restrictions like "<b>" etc., dangerous for further HTML using.

I'd like to use this built-in feature allowing the server to validate all
these user's strings but I need to know the whole list of all these
restrictions. Is it possible to find this list at all? Or it's a clarified
information and only Microsoft owns this list?

Thanks,
Dmitri.
 
S

Steve Lutz

Looks like you are trying to take input via a web page, and not have the
user's input contain HTML?

If so, you can just HttpServerUtility.HtmlEncode to encode the user's
string. When you display the string they entered, it will look exactly like
they typed it, and won't mess up your own HTML.
 

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

Top