I have a telerik:RadSearchBox that has EnableAutoComplete="true" and its datasource is connected to a web service.
The web service requires a token that is set in the web.config file.
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
Dim wsSearchResults As New ws_PBP_SearchResults.ws_PBP_SearchResultsSoapClient
Dim dsPropName As System.Data.DataSet
dsPropName = wsSearchResults.PropNameSearch(sKey:=ConfigurationManager.AppSettings.Item("AccessTokenPrivate"))
Dim dt_PropName As DataTable = dsPropName.Tables("TableName")
RadSearchBox1.DataSource = dt_PropName
RadSearchBox1.DataBind()
End Sub
Is there a better way to populate the telerik:RadSearchBox datasource such as using <WebServiceSettings .... /> and have the ability to pass the web service a token?
Thanks in advance.