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. About DropDownList...?

About DropDownList...?

Scheduled Pinned Locked Moved ASP.NET
question
6 Posts 4 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.
  • K Offline
    K Offline
    Kasi Viswanathan
    wrote on last edited by
    #1

    I have a TextBox and DropDownList in which when i enter a character in TextBox then the DropDownList selected item must starts with the character which i enter....Any Idea or Reference will be more helpful... Thanks in Advance...:rose:

    Erasers are for people who are willing to correct their mistakes.

    S R S K 4 Replies Last reply
    0
    • K Kasi Viswanathan

      I have a TextBox and DropDownList in which when i enter a character in TextBox then the DropDownList selected item must starts with the character which i enter....Any Idea or Reference will be more helpful... Thanks in Advance...:rose:

      Erasers are for people who are willing to correct their mistakes.

      S Offline
      S Offline
      Sun Rays
      wrote on last edited by
      #2

      Hi, you can use ajax control for that. ListSearchExtender Hope it will help you.

      Thanks, Sun Rays To get something you must have to try once. My Articles

      1 Reply Last reply
      0
      • K Kasi Viswanathan

        I have a TextBox and DropDownList in which when i enter a character in TextBox then the DropDownList selected item must starts with the character which i enter....Any Idea or Reference will be more helpful... Thanks in Advance...:rose:

        Erasers are for people who are willing to correct their mistakes.

        R Offline
        R Offline
        rockz
        wrote on last edited by
        #3

        U can also do it using a stored procedure. e.g. CREATE PROCEDURE [dbo].[USP_GetName] @i_strSearchName VARCHAR(50) AS BEGIN SELECT NAME FROM USER Where NAME Like @i_strSearchName+'%' END

        S 1 Reply Last reply
        0
        • R rockz

          U can also do it using a stored procedure. e.g. CREATE PROCEDURE [dbo].[USP_GetName] @i_strSearchName VARCHAR(50) AS BEGIN SELECT NAME FROM USER Where NAME Like @i_strSearchName+'%' END

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          But for this you need to have a postback of whole page it is one of the solutions but not efficent way

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          1 Reply Last reply
          0
          • K Kasi Viswanathan

            I have a TextBox and DropDownList in which when i enter a character in TextBox then the DropDownList selected item must starts with the character which i enter....Any Idea or Reference will be more helpful... Thanks in Advance...:rose:

            Erasers are for people who are willing to correct their mistakes.

            S Offline
            S Offline
            Sandeep Akhare
            wrote on last edited by
            #5

            I think you meant that you need to re arrange/sort the items present in the dropdown list after entering the textbox so that it will show the items starting with same charachter. For this i think you will have to go for javascript

            Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

            1 Reply Last reply
            0
            • K Kasi Viswanathan

              I have a TextBox and DropDownList in which when i enter a character in TextBox then the DropDownList selected item must starts with the character which i enter....Any Idea or Reference will be more helpful... Thanks in Advance...:rose:

              Erasers are for people who are willing to correct their mistakes.

              K Offline
              K Offline
              Kasi Viswanathan
              wrote on last edited by
              #6

              Tanx for ur reply...:rose: I use the following query SELECT Name FROM TableName WHERE (Name LIKE @TextBox1 + '%') and in TextChange Event nme=System.Convert.ToString(_RegistrationTableAdapter.SearchQuery(txtnme.Text)); ListCombo.SelectedIndex=ListCombo.Items.IndexOf(ListCombo.Items.FindByText(nme));

              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