Checking for inappropriate/offending contents entered by user

Last post 05-09-2008 10:13 AM by aspnet022. 2 replies.

Sort Posts:

  • Checking for inappropriate/offending contents entered by user

    05-08-2008, 3:35 PM
    • Loading...
    • aspnet022
    • Joined on 02-27-2008, 4:12 PM
    • Posts 9

     I want to implement a routine on my website which will check for inappropriate contents (like F words)

    entered by the user in fields like text boxes, textareas etc.

     What might the good appraches to accomplish this ?

     Ideas / tips would be really appreciated.

     

    Thanks indeed.

     

  • Re: Checking for inappropriate/offending contents entered by user

    05-08-2008, 4:16 PM
    • Loading...
    • geosync
    • Joined on 03-26-2006, 8:44 PM
    • Boston, MA, USA
    • Posts 322

    ASP.Net provides the Custom Vaidator control.  With that, you can code a routine to search the Textbox.Text property for various keywords.  The custom validation function you provide with the Custom Validator can reject or accept the entry by returning TRUE or FALSE.

    ~ Timing is Everything! ~
  • Re: Checking for inappropriate/offending contents entered by user

    05-09-2008, 10:13 AM
    • Loading...
    • aspnet022
    • Joined on 02-27-2008, 4:12 PM
    • Posts 9

    Appreciate it.  

Page 1 of 1 (3 items)