I have a stored procedure that get a list of categories from my database
I then have some code that execute the stored procedure and returns the data to a datatable
I then call this method to bind to the auto complete box
then call the databind on page load
This is my front end code for the autocomplete
when I run the page and start typing i get the attached error message. Have I missed something really simple here?
Select Category from CategoriesPublic Shared Function GetDescription() As DataTable Dim comm As DbCommand = GenericDataAccess.CreateCommand() comm.CommandText = "GetDescriptions" Return GenericDataAccess.ExecuteSelectCommand(comm) End FunctionProtected Sub txtSearch_DataBinding(sender As Object, e As EventArgs) Handles txtSearch.DataBinding txtSearch.DataSource = GetMethods.GetDescription() End SubProtected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then txtSearch.DataBind() End If End Sub<telerik:RadAutoCompleteBox ID="txtSearch" DataTextField="Category" DataValueField="Category" runat="server" EmptyMessage="Please enter search term"></telerik:RadAutoCompleteBox>