Please Help
-
Hello to all. I have one textbox which has a facility of autocomplete and the autocomplete criteria comes from the database. example: if i enter "a" in textbox the words starting from "a" appear in the listbox below the textbox.Now i have done coding in such a way that if i press enter in the listbox then the word in the listbox is filled in the textbox and the listbox disappears. sql tables used: Table1: AID int, AName varchar(50) Table2: Aid int, ADescription varchar(200) The text displayed in the listbox is AName. I want to display the no. of records of ADescription having Aid that has Aname from Table1. I want to display that records as soon as the value in the listbox is selected.In which event should i write the code. Please help me.
-
Hello to all. I have one textbox which has a facility of autocomplete and the autocomplete criteria comes from the database. example: if i enter "a" in textbox the words starting from "a" appear in the listbox below the textbox.Now i have done coding in such a way that if i press enter in the listbox then the word in the listbox is filled in the textbox and the listbox disappears. sql tables used: Table1: AID int, AName varchar(50) Table2: Aid int, ADescription varchar(200) The text displayed in the listbox is AName. I want to display the no. of records of ADescription having Aid that has Aname from Table1. I want to display that records as soon as the value in the listbox is selected.In which event should i write the code. Please help me.
You need write the code on post back of control mean set the auto postback true property of textbox. Each post back of text box get the record from the database via Like clause of select statement. Or you can use Ajax for implement it.
Parwej Ahamad g.parwez@gmail.com
-
You need write the code on post back of control mean set the auto postback true property of textbox. Each post back of text box get the record from the database via Like clause of select statement. Or you can use Ajax for implement it.
Parwej Ahamad g.parwez@gmail.com
Thanks. But i have used the textbox of html(input type="text") and i am using javascript function.Through javascript function i am passing value of textbox to the other aspx page and from there through querystring that value is fetched and then select query is fired. What should i do?