I'd be glad if someone could help with how to write a code for autocomplete TextBox in asp.vb.net.
I'm able to do that in VB.Net Windows application, but unable to do same in the Web Application. The following is what I've tried under Page_load:
Try
cmd = New SqlCommand("Select SubjectName from ProgramDetails.Subjects", cn)
dr1 = cmd.ExecuteReader
While dr1.Read
txtSearch.AutoCompleteType.GetType.Name.Trim(dr1(0))
End While
dr1.Close()
dr1 = Nothing
Catch ex As Exception
MsgBox(ex.Message)
Finally
End Try