secure textbox

Discussion in 'ASP .Net' started by DDK, May 12, 2004.

  1. DDK

    DDK Guest

    How would I let users input HTML in a textbox, while securing it from script
    attacks with ASP.NET + C#?

    Thanks,
    d.
    DDK, May 12, 2004
    #1
    1. Advertising

  2. One, placing a "<script" in a text box will bomb a typical installation of
    asp.net.

    You can wire to the onblur event for the text box and replace all
    "<(anychar)" with "< (anychar)" and then inspect for "<script" tag and
    remove them.

    bill

    "DDK" <> wrote in message
    news:...
    > How would I let users input HTML in a textbox, while securing it from

    script
    > attacks with ASP.NET + C#?
    >
    > Thanks,
    > d.
    >
    >
    William F. Robertson, Jr., May 12, 2004
    #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. A.M
    Replies:
    5
    Views:
    5,419
    Teemu Keiski
    Jun 8, 2004
  2. Daniel Malcolm
    Replies:
    0
    Views:
    545
    Daniel Malcolm
    Jan 24, 2005
  3. zdrakec
    Replies:
    1
    Views:
    425
    zdrakec
    Jul 25, 2005
  4. Joe
    Replies:
    5
    Views:
    945
    Steven Cheng[MSFT]
    Dec 13, 2005
  5. verbal kint
    Replies:
    1
    Views:
    540
    Sudsy
    Sep 4, 2004
Loading...

Share This Page