AutoCompleteExtender reset the textbox to empty if the text userentered is no in the list.

Discussion in 'ASP .Net' started by rockdale, Mar 24, 2009.

  1. rockdale

    rockdale Guest

    Hi, all:

    I have a question with AutoCompleteExtender. is there a way to alert
    user and reset the textbox to empty if the user typed something that
    not in the autocomplete list?

    like:

    I have Apple, Orange, Banana in my database and they will show on the
    autocomplete list. But if user typed Kiwi fruit which is not in my
    database then I want alert the user of this and at the same time set
    the textbox back to blank.


    thanks
    -rockdale
     
    rockdale, Mar 24, 2009
    #1
    1. Advertisements

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. spike

    reset a string. empty it totally.

    spike, Mar 5, 2004, in forum: C Programming
    Replies:
    8
    Views:
    11,868
    CBFalconer
    Mar 6, 2004
  2. dharric
    Replies:
    0
    Views:
    817
    dharric
    Oct 24, 2006
  3. Replies:
    3
    Views:
    963
    George Ter-Saakov
    Feb 23, 2007
  4. rote
    Replies:
    1
    Views:
    527
    Bryan Porter
    Nov 29, 2007
  5. Tzury Bar Yochay
    Replies:
    1
    Views:
    562
    Gabriel Genellina
    Mar 24, 2008
  6. Replies:
    0
    Views:
    488
  7. agb

    writing two textbox's text in one textbox

    agb, Aug 26, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    276
    Ken Cox [Microsoft MVP]
    Aug 27, 2003
  8. Nuyttens Xavier

    Default empty text in a textbox

    Nuyttens Xavier, Jan 4, 2007, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    3,646
    TiSch
    Jan 5, 2007
Loading...