Disallowing HTML Tags (JScripts) from being entered

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Disallowing HTML Tags (JScripts) from being entered

    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 Guest

  2. Similar Questions and Discussions

    1. ASP Tags auto entered by contribute
      Hi All, I have only recently stated using contribute and I am having a little problem with an ASP tag interferring with my site search. When...
    2. Multiple <html> tags
      I'm running a site coding in coldfusion and already have about 20 people using contribute to make updates to their sections of the web. This works...
    3. html character enities and other html tags in Contribute3.x
      If you need support/integration of additional html character entities and other html tags in Contribute 3.x, please let Macromedia know that you are...
    4. How to use HTML::Parser to remove HTML tags and print result
      I am trying to use HTML::Parser to parse an HTML file, remove all HTML tags (including comments, etc.), replace all ENTITIES (e.g. &amp), and put...
    5. Changing a html table when new data is entered into SQL table.
      Hi all, I was wondering if anyone has any ideas on how I would go about this task. What I have is a html table which is populated from 2 different...
  3. #2

    Default Re: Disallowing HTML Tags (JScripts) from being entered

    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" <m3convertible@hotmail.com> wrote in message
    news:ORKqp61JEHA.3292@TK2MSFTNGP11.phx.gbl...
    > 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 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139