Disallowing HTML Tags (JScripts) from being entered

Discussion in 'ASP .Net Security' started by Henry, Apr 21, 2004.

  1. Henry

    Henry Guest

    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
    Henry, Apr 21, 2004
    #1
    1. Advertising

  2. Henry

    M. Burnett Guest

    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


    "Henry" <> wrote in message
    news:...
    > 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. Burnett, Apr 21, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TN Bella
    Replies:
    1
    Views:
    1,489
    TN Bella
    Jul 1, 2004
  2. Patrice

    Re: Disallowing the caching of pages

    Patrice, Sep 21, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    372
    =?Utf-8?B?U3VqaXRoIFYuUA==?=
    Sep 23, 2004
  3. Mantorok

    Disallowing back after submit

    Mantorok, Sep 9, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    358
    S. Justin Gengo
    Sep 14, 2005
  4. Rex  King
    Replies:
    0
    Views:
    337
    Rex King
    Apr 20, 2005
  5. Mel
    Replies:
    6
    Views:
    82
    shimmyshack
    May 15, 2007
Loading...

Share This Page