Page Validation - list of restricted words

  • Thread starter Thread starter Dmitri Shvetsov
  • Start date Start date
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.
 
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.
 
Back
Top