急.急.急怎样才能把Dataset中的数据表的内容发入一个二维数组.
public void datapu()
{string sSql="Select classid,classname From class Where classid='"+ b +"'";
DataSet csSet=new DataSet();
SqlDataAdapter cspter=new SqlDataAdapter(sSql,myconn);
cspter.Fill(csSet,"cstable");
二维数组=csSet.Table["cstable"]表中的内容.
Application["kfist"]=二维数组.
在把 Appliction["kfist"]做为Dropplist数据源.
this.DropDownList1.DataTextField="classname";
this.DropDownList1.DataValueField="classid";
this.DropDownList1.DataSource=Application["kfist"];
this.DropDownList1.DataBind();
}
各为帮帮忙看一下.问题解决马上给分.明天就要交了的项啊!就是还差这一个问题了.一定要忙我啊!