Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. asp:Textbox control

asp:Textbox control

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phan7om
    wrote on last edited by
    #1

    Hi all Whenever I change text in a textbox i need to differentiate between two methods of doing this 1. Enter text 2. select a value from list of previously saved values and press Enter key. One thing to note here is that TextChanged event is not fired when a value from the previously saved values is selected if we are using IE. Any help in this regards ? Regards Zain ul Abideen

    A 1 Reply Last reply
    0
    • P Phan7om

      Hi all Whenever I change text in a textbox i need to differentiate between two methods of doing this 1. Enter text 2. select a value from list of previously saved values and press Enter key. One thing to note here is that TextChanged event is not fired when a value from the previously saved values is selected if we are using IE. Any help in this regards ? Regards Zain ul Abideen

      A Offline
      A Offline
      Anurag Gandhi
      wrote on last edited by
      #2

      Are you looking for AutoComplete Textbox control? Its there with asp.net ajax control. Pls be sure to make AutoPostback property to false if you don't wish to post back on every text change. please let us know if you are looking for something else.

      Anurag Gandhi.
      http://www.gandhisoft.com
      Life is a computer program and every one is the programmer of his own life.

      P 1 Reply Last reply
      0
      • A Anurag Gandhi

        Are you looking for AutoComplete Textbox control? Its there with asp.net ajax control. Pls be sure to make AutoPostback property to false if you don't wish to post back on every text change. please let us know if you are looking for something else.

        Anurag Gandhi.
        http://www.gandhisoft.com
        Life is a computer program and every one is the programmer of his own life.

        P Offline
        P Offline
        Phan7om
        wrote on last edited by
        #3

        Hi No I don't need an ajax control. Actually I have implemented a textchange event for a textbox and it is fired whenever text is changed by: 1. entering text and hitting Enter 2. entering text and then clicking somewhere else on the form But I need to differentiate between these two scenarios. for (1) I have to fire a button's click event and for (2) Enable a button. Thanks for replying. Regards,

        N 1 Reply Last reply
        0
        • P Phan7om

          Hi No I don't need an ajax control. Actually I have implemented a textchange event for a textbox and it is fired whenever text is changed by: 1. entering text and hitting Enter 2. entering text and then clicking somewhere else on the form But I need to differentiate between these two scenarios. for (1) I have to fire a button's click event and for (2) Enable a button. Thanks for replying. Regards,

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          These are two separate events. Pressing the Enter key is handled by the KeyXXX (KeyDown, KeyUp, KeyPress) events. Clicking elsewhere on the form is handled by the LostFocus event, or OnBlur in JavaScript.


          I know the language. I've read a book. - _Madmatt

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups