Posted on: 11/24/2012 12:31:34 AM | Views : 445

Hello,
I have 2 Autocomplete functions in the same webservice. The first one (GetCompanyList) does not work. But the second one (GetMembersList) works fine. Pulling my hair out. Please help.
<System.Web.Services.WebMethod()> _ <System.Web.Script.Services.ScriptMethod()> _ Public Function GetCompanyList(ByVal prefixText As String, ByVal count As Integer) As List(Of String) Dim cnn As New SqlClient.SqlConnection("Data Source=Computer;Initial Catalog=dB;Integrated Security=True") Dim cmd As New SqlCommand("GetCompany", cnn) 'StateID statement below causes error - possibly because session can't be retrieved from session Dim StateID As Integer = HttpCont ...

Go to the complete details ...