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. Text Box Event OnTextChange

Text Box Event OnTextChange

Scheduled Pinned Locked Moved ASP.NET
cssdatabasehelp
8 Posts 6 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.
  • G Offline
    G Offline
    gautamamit8
    wrote on last edited by
    #1

    Hi All I Have a problem.I want to search record from database and fill in a grid simultaneously when a user typing in TextBox means when i type 'A' in TextBox it fill gridview from database like 'Adam', 'Ashmit' ,'Anirudh' ,'Adnan' bt when he type another letter like 'Ad' then only 'Adam','Adnan' will remain in grid. this is the result without click over any button Thanks in Advance

    M S S 3 Replies Last reply
    0
    • G gautamamit8

      Hi All I Have a problem.I want to search record from database and fill in a grid simultaneously when a user typing in TextBox means when i type 'A' in TextBox it fill gridview from database like 'Adam', 'Ashmit' ,'Anirudh' ,'Adnan' bt when he type another letter like 'Ad' then only 'Adam','Adnan' will remain in grid. this is the result without click over any button Thanks in Advance

      M Offline
      M Offline
      Morgs Morgan
      wrote on last edited by
      #2

      You can try Ajax Auto Complete along with linq-Sql

      G 1 Reply Last reply
      0
      • G gautamamit8

        Hi All I Have a problem.I want to search record from database and fill in a grid simultaneously when a user typing in TextBox means when i type 'A' in TextBox it fill gridview from database like 'Adam', 'Ashmit' ,'Anirudh' ,'Adnan' bt when he type another letter like 'Ad' then only 'Adam','Adnan' will remain in grid. this is the result without click over any button Thanks in Advance

        S Offline
        S Offline
        Sandesh M Patil
        wrote on last edited by
        #3

        Use Ajax and in Sql Query use Like stmt :)

        G 1 Reply Last reply
        0
        • S Sandesh M Patil

          Use Ajax and in Sql Query use Like stmt :)

          G Offline
          G Offline
          gautamamit8
          wrote on last edited by
          #4

          Could u tell me how mean in form of Code

          S 1 Reply Last reply
          0
          • M Morgs Morgan

            You can try Ajax Auto Complete along with linq-Sql

            G Offline
            G Offline
            gautamamit8
            wrote on last edited by
            #5

            Tell me without use of AJAX i Think it can be possible by adding one more attribute i.e. onTextChange event bt i dont know how i do this. Guide me if u know the solution

            B 1 Reply Last reply
            0
            • G gautamamit8

              Tell me without use of AJAX i Think it can be possible by adding one more attribute i.e. onTextChange event bt i dont know how i do this. Guide me if u know the solution

              B Offline
              B Offline
              Brij
              wrote on last edited by
              #6

              if you wont use AJAX on every textchanged a postback will happen which at all not good

              Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

              1 Reply Last reply
              0
              • G gautamamit8

                Could u tell me how mean in form of Code

                S Offline
                S Offline
                Sandeep Mewara
                wrote on last edited by
                #7

                gautamamit8 wrote:

                Could u tell me how mean in form of Code

                Try out! You have been given head start...use Google with key words if needed... people here won't provde you direct code. Put some effort and if you get stuck, all will help.

                1 Reply Last reply
                0
                • G gautamamit8

                  Hi All I Have a problem.I want to search record from database and fill in a grid simultaneously when a user typing in TextBox means when i type 'A' in TextBox it fill gridview from database like 'Adam', 'Ashmit' ,'Anirudh' ,'Adnan' bt when he type another letter like 'Ad' then only 'Adam','Adnan' will remain in grid. this is the result without click over any button Thanks in Advance

                  S Offline
                  S Offline
                  Swiftain
                  wrote on last edited by
                  #8

                  Yeah, the way out is to use the ajax AutoCompleteExtender alongside a web method to get the data :)

                  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