Results 1 to 4 of 4

Thread: Stop Text box from rembering previous values

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    10

    Stop Text box from rembering previous values

    How do I Stop Text boxes from rembering previous values that have been entered into the textbox from previous data entry into the web page? Also If I do disable this will it cause me any problems when updating back to the database and as such is better to leave on ?

  2. #2
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375
    On the textfield which you do not want to automatically save values set the enableviewstate property to false.
    Cheers
    markusJ

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    10
    Cheers I've tried this but it hasn't made any difference. Everytime I go to add a new value to a text box, the textbox drops down a number of values that have been entered in previously. What am I doing wrong ? I very confused.

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    10
    Can someone explain Enableviewstate to me. I read loads of articles but I still haven't got a clue.

    1) If change the control property to enableViewstate = false , should this clear the list of previous items from text box ? (but it's not just working on my version ?)

    2) Am I write in saying if I then try to update the database from this control the update won't work ?

    Thanks for listening.

Posting Permissions

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



Click Here to Expand Forum to Full Width