I'm also getting a "Object Required" for the last line:
function init() {
  var x = new MS.Web.AutoCompleteDataTable("searchCustomerID", 10);

  x.getDisplay = function(item) {
    return (item != null ? item.Authority : "");
  }
  x.getValue = function(item) {
    return (item != null ? item.Authority.toString().trimRight() : "");
  }
  x.getData = function() {
    Namespace.ClassName.AjaxMethod(this.ele.value, this.count,
this.callback.bind(this));
  }
}
addEvent(window, "load", init);

My code behind, in VB, is trying to pull a single field right now in
order to populate the first text box, which is a person's last name
then first name, "Auth".
*******
*******

<AjaxPro.AjaxMethod()> _
 Public Function SearchAdvanced(ByVal orderNumber As String, ByVal
customerID As Integer, ByVal count As Integer) As DataTable
        Dim ds As DataSet = New DataSet
        Dim cmd As New SqlCommand("SELECT Auth FROM AuthTBL WHERE Auth
like @CustomerID")
        cmd.Parameters.Add("@CustomerID", customerID)
        Try
            sCon1.Open()
            Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)
            da.Fill(ds)
            sCon1.Close()
        Catch
            Return Nothing
        End Try
        'Return ds.Tables
        Return ds.Tables(0)

    End Function


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to