autoComplete1.ServiceMethod = objdpt.LoadDpt(prefix);
aspx.cs
код файла .. вызов loaddpt
функция
public string LoadDpt(string prefixtext)
{
//Functionality : AutoComplete The DepartmentName
ArrayList arlSample = new ArrayList();
arlSample = objDataAccess.GetSingleColumn("QRY_DeptName", prefixtext);
return arlSample;
//string[] strArray = arlSample.ToArray(typeof(string)) as string[];
}
выше - код файла bll. вызов getsinglecolum
функции
public ArrayList GetSingleColumn(string strQuery, params object[] objValueList)
{
ArrayList arlData = new ArrayList();
try
{
string strQry;
strQry = ReadXmlvalue(strQuery, objValueList);
cmdHrm = new OleDbCommand();
cmdHrm.Connection = conHrmDb;
if (conHrmDb.State == ConnectionState.Closed)
conHrmDb.Open();
cmdHrm.CommandText = strQry;
drdHrm = cmdHrm.ExecuteReader();
while (drdHrm.Read())
{
arlData.Add(drdHrm.ToString());
}
return arlData;
}
catch (Exception ex)
{
throw ex;
}
finally
{
if (conHrmDb.State == ConnectionState.Open)
conHrmDb.Close();
}
}
выше код файла dal.
я хочу вернуть строку в aspx.cs
file..help plz