怎么点击按钮就可以将TEXTBOX中的值.更新到数据库中相应的值去?
我的程序是这样的,源码如下:
________________________
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 一卡通辅助程序
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
static void main()
{
Application.Run(new Form1());
}
private void button2_Click(object sender, EventArgs e)
{
textBox2.Text = " ";
textBox3.Text = " ";
textBox4.Text = " ";
textBox5.Text = " ";
textBox6.Text = " ";
}
BindingManagerBase bmbooks;
private void Form1_Load(object sender, EventArgs e)
{
oleDbDataAdapter1.Fill(dataSet11);
bmbooks = this.BindingContext[dataSet11, "member "];
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
dataSet11.Clear();
oleDbDataAdapter1.SelectCommand.Parameters[ "ID "].Value = textBox1.Text;