webservice 交错数组

net webservices

public DataSet SelectOPQuestionByWhere(string strWhere, string[][] strArry)
{
if (!key.IsValid())
return null;
DataSet ds = new DataSet();
try
{
QuestionBank.Dal.Examination_OperateQuestion dalQuestion = new QuestionBank.Dal.Examination_OperateQuestion();
Hashtable ht = new Hashtable();
for (int ii = 0; ii < strArry.Length; ii++)
{
ht.Add(strArry[ii][0].ToString(), strArry[ii][1].ToString());
}
return dalQuestion.GetList(strWhere, "id", ht);
}
catch
{
return ds;
}

}

string[][] ht = new string[][] { new string[] { "", "" } };
GVListShow.DataSource = service.SelectOPQuestionByWhere("1=1", ht);
GVListShow.DataBind();
原文地址:https://www.cnblogs.com/chenmfly/p/5413789.html