いくつかのパラメーターを渡そうとしていた ObjectDataSource があります。
GridDataSource.SelectMethod = "GetAllCountries";
GridDataSource.SelectParameters.Add("PageSize", pageSize.ToString());
GridDataSource.SelectParameters.Add("OrderBy", orderBy);
GridDataSource.SelectParameters.Add("StartIndex", startIndex.ToString());
私の方法は App_Code/DAL/CountriesDB.CS にあります
public List<Countries> GetAllCountries(int PageSize,string OrderBy,int StartIndex)
{
..........
}
私がそれをデバッグしたとき、GetAllCountries メソッドで PageSize=-1;OrderBy="",StartIndex=0 が渡されました...ここで何が起こっているのですか??
thnx事前に...