CalmSoul
asked on
Auto Suggest Box Control
Hello:
I found this control... Can somebody give me walk through to make it work with SQL database?
http://www.entechsolutions.com/DeveloperCorner/AutoSuggestBox/Overview.aspx
thanks
I found this control... Can somebody give me walk through to make it work with SQL database?
http://www.entechsolutions.com/DeveloperCorner/AutoSuggestBox/Overview.aspx
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Please close the question...
ASKER
Private Function LoadCities(ByVal sKeyword As String) As ArrayList
Dim aOut As ArrayList = New ArrayList
Dim sConnString As String = "Provider=Microsoft.Jet.OL
Dim oCn As OleDbConnection = New OleDbConnection(sConnStrin
Dim sSql As String
sSql = "SELECT TOP " & (mnNumMenuItems + 1) & " tblCity.Name as CityName, " & _
"tblCity.Code as CityCode, " & _
"tblCountry.Name as CountryName, " & _
"tblState.Name as StateName " & _
" FROM (tblCity INNER JOIN tblCountry ON tblCity.CountryID=tblCount
" LEFT OUTER JOIN tblState ON tblCity.StateID=tblState.I
" WHERE (tblCity.Name LIKE '" + sKeyword.Replace("'", "''") + "%') " & _
" ORDER BY tblCity.Name"