asp.net OleDbCommand 的用法

asp.net OleDbCommand 的用法ASP。网下OleDbCommand的使用代码OleDbConnectioncon=newOleDbConnection( Provider=Microsoft .杰特。OLEDB.4.0data source=data。MDB’);con . Open();oledbcommandc=newOleDbCommand( selectnamefromuswhere id=2 ,con);文本框1。Text=dc .ExecuteScalar().ToString();OleDbConnectioncon=newOleDbConnection( Provider=Microsoft .杰特。OLEDB.4.0data source=data。MDB’);con . Open();oledbcommandc=newOleDbCommand( insertintous(name)values(11),con);华盛顿ExecuteNonQuery();con . Close();stringus=textBox2 .文本;stringpa=textBox1 .文本;OleDbConnectioncon=newOleDbConnection( Provider=Microsoft .杰特。OLEDB.4.0data source=data。MDB’);OleDbCommandoldC=newOleDbCommand( insertintousers(username,userpassword)值(@username,@userpassword),con);旧的.参数。添加( @username ,us);旧的.参数。Add(@userpassword ,pa);con . Open();旧的.ExecuteNonQuery();con . Close();消息框.Show(Registersuccessful!);这个dispose();

asp.net OleDbCommand 的用法