Undo in TextBox

Discussion in 'ASP .Net' started by Marco Liedekerken, Jun 26, 2003.

  1. Hi,

    If a user enters a wrong value (which depends on some properties of it's
    container control) in one of my dynamicly made TextBoxes I want to undo the
    change he made to the Text property of the TextBox.
    I think some possible ways are:
    - Use a Validation control. This will be difficult because I generate
    multiple TextBoxes dynamicly and they have different validationrules.
    - Do something in the TextChanged handler. This is preferred and simple
    but maybe this is impossible.
    - Add a property to the TextBox control which remembers the previously
    entered value.
    - .....

    My first question is: how can I do the undo the best way?
    My second question is: is there a possibility to retrieve the previous
    entered value in the TextChanged handler?

    Thanks, Marco
     
    Marco Liedekerken, Jun 26, 2003
    #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. john farrow

    How do I undo WebRequest.RegisterPrefix

    john farrow, Apr 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    892
    john farrow
    Apr 13, 2004
  2. tshad

    Undo formatting

    tshad, Apr 6, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    1,101
    tshad
    Apr 13, 2005
  3. Morgan Bachu

    How to "undo" a database delete

    Morgan Bachu, Aug 30, 2005, in forum: ASP .Net
    Replies:
    13
    Views:
    10,706
    James Doughty
    Aug 31, 2005
  4. Andreas Wachhold

    Undo/Redo Java?

    Andreas Wachhold, May 4, 2004, in forum: Java
    Replies:
    2
    Views:
    4,973
    Mykola Rabchevskiy
    May 4, 2004
  5. Adam

    Undo

    Adam, Sep 17, 2004, in forum: Java
    Replies:
    6
    Views:
    1,112
    Thomas Fritsch
    Sep 22, 2004
Loading...

Share This Page