2011-02-01 9 views
2

上記のようなパラメータをSelectParametersに追加します。メソッド呼び出し「GetCompaniesSubset」実行しますが、私は次のエラーを取得するリターンに:のObjectDataSourceページングおよび追加パラメータ

ObjectDataSource 'odsCompaniesIndex' could not find a non-generic method 'GetCompaniesCount' that has parameters: status.

私SelectMethodは次のとおりです。

public DataSet GetCompaniesSubset(
     int startRowIndex, int maximumRows, string sortExpression, bool status) 
{...} 

あなたはSelectMethodがStartRowIndexParameterName/MaximumRowsParameterNameと余分なパラメータを利用できるようにするにはどうすればよいです?

おかげ

+0

'ObjectDataSource'をどのように消費しますか?あなたは 'GridView'を使っていますか? –

+0

はい私の投稿を編集するつもりです! – adamwtiko

答えて

2

問題がGetCompaniesCountstatusパラメータ、ないGetCompaniesSubsetを持っていないことです。

+0

おかげで昨日これを見て、どうやってそんなに愚かなことができるか考えました!私はもっ​​と読む必要があります! – adamwtiko

関連する問題