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