Automaticly HTML encode text

Last post 10-14-2009 11:32 AM by jgsnell. 0 replies.

Sort Posts:

  • Automaticly HTML encode text

    10-14-2009, 11:32 AM
    • Member
      point Member
    • jgsnell
    • Member since 10-14-2009, 11:26 AM
    • Posts 1

    I'd like a property on all controls that display text, label, textbox, checkbox, etc..  that will automaticly HTML encode the text during the control's render.  It'd be nice if this was defaulted to True. 

    Now I have to do a server.HTMLencode(string) on all my text fields and turn off pagevalidation otherwise I get the

    a potentially dangerous request.form value was detected from the client

    whenever people try entering in < and > symbols

Page 1 of 1 (1 items)