RegularExpressionValidator & Textbox

Discussion in 'ASP .Net Web Controls' started by rkp, Aug 7, 2007.

  1. rkp

    rkp Guest

    Hi

    I'm trying to add a RegularExpressionValidator to textboxes in a web page to
    stop users entering invalid hmtl tags without much success.

    For example, if a user enters <b/> into the textbox, on postback the page
    errors without me being able to trap the error.

    I'm sure there is a simple solution to this but I've spent hours trying to
    find the answer.

    Can anyone help please?

    TIA

    Richard
     
    rkp, Aug 7, 2007
    #1
    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. Oleg Ogurok
    Replies:
    1
    Views:
    6,357
    William F. Robertson, Jr.
    Jun 25, 2003
  2. Helixpoint

    RegularExpressionValidator for money??

    Helixpoint, Jun 30, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    2,795
    Helixpoint
    Jul 1, 2003
  3. =?Utf-8?B?RW56byBNYXJpbmVsbGk=?=

    Bug? - RegularExpressionValidator on a MultiLine TextBox

    =?Utf-8?B?RW56byBNYXJpbmVsbGk=?=, May 6, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,448
    Martin Dechev
    May 6, 2004
  4. rockdale
    Replies:
    1
    Views:
    649
  5. RKP

    Textbox, HTML Tags & RegularExpressionValidator

    RKP, Aug 7, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    234
Loading...

Share This Page