数据表代码
OleDbConnection connection = new OleDbConnection(connectionString);
connection.Open();
OleDbCommand comand = new OleDbCommand("Select id, name From menu where KlassID=@KlassID", connection);
comand.Parameters.Add("@KlassID", OleDbType.Integer).Value = KlassID;
OleDbDataAdapter da = new OleDbDataAdapter(comand);
DataTable dt = new DataTable();
da.Fill(dt);
按钮下一步
private void btNext_Click(object sender, EventArgs e)
{
//
enter code here
}
按钮上一个
private void btPrevious_Click(object sender, EventArgs e)
{
//enter code here
}
我找到了类似的代码,但这里有一条记录