Auto Suggest textbox data from database.

Posted by Narla.Venkatesh under ASP.NET on 8/30/2012 | Points: 10 | Views : 2608 | Status : [Member] | Replies : 2
hi everybody,
In one of mine application, if i press key 'a' then textbox have to auto suggest the 'a' related all data from database in the text box like list.
how can i develop it?





Venkatesh

regards
Venkatesh



Responses

Posted by: Gopesh9 on: 8/30/2012 [Member] Starter | Points: 25

Up
0
Down
Hey Narla,

There are two ways how you can create that-
Firstly - In the TextChanged event of the TextBox, write the query to extract all the values from the database corresponding to that text in the Textbox.
Secondly- You can use Ajax for doing this.

But I prefer to write that in the TextChanged event of the TextBox .

G. S.
.Net Developer

Narla.Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 8/30/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Refer this url
http://www.dotnetfunda.com/codes/code2722-autocompleteextender-in-textbox-from-sql-table.aspx

Narla.Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response