public DataSet searchInfo(string searchText)
{
SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]);
SqlDataAdapter adapter = new SqlDataAdapter("SearchBasicInfoByName",myConnection);
adapter.
SqlParameter parameterSearch = new SqlParameter("@Search", SqlDbType.NVarChar, 255);
parameterSearch.Value = searchText;
adapter.SelectCommand.Parameters.Add(parameterSearch);
DataSet dsr = new DataSet();
adapter.Fill(dsr,"BasicInfo");//ConnectionString 属性尚未初始化。
return dsr;
}
晕倒啊...你自己看看是怎么回事吧(我搞不清楚)~