Ajax Autocomplete in IIS

127 views Asked by At

I am using ajax autocomplete extender for autocomplete functionality. This is working fine when i am running from Visual Studio. My Code Below:



Service Method:

[OperationContract]

public List autoCompleteStreetName(string prefixText, int count)
{
string query = "SELECT TOP 20 streetName1 FROM TBL_Property_Information WHERE streetName1 LIKE '%" + prefixText + "%'";
DataAccessLayer dAccess = new DataAccessLayer();
List industryNames = new List();
DataTable objIndustryTable = new DataTable();
objIndustryTable = dAccess.FillDataTable(query);
for (int i = 0; i < objIndustryTable.Rows.Count; i++)
{
industryNames.Add(objIndustryTable.Rows[i]["streetName1"].ToString());
}
return industryNames;
}

Issue is
When hosted into an IIS server the AutoComplete is not working. The Result list is showing only the html,head,link tags in vertical

I am using Form Authentication

The Result Values are like Below

h
t
m
l

h
e
a
d

l
i
n
k

r
e
l

.
.
.
.
h
t
m
l
/


This is always coming only when hosted in IIS server. What might be the problem? Any solution would be highly appreciated.

0

There are 0 answers