using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
private void Form1_Load(object sender, System.EventArgs e)
{
string Constr=@"server=local"+"uid=toby"+"database=student";
string SQL="SELECT*FROM table";
SqlConnection conn=new SqlConnection(Constr);
SqlDataAdpater da= new SqlDataAdapter(SQL,conn);
DataSet ds=new DataSet();
da.Fill(ds,"table");
textBox1.DataBindings.Add("Text",ds,"table.name");
textBox2.DataBindings.Add("Text",ds,"table.name");
}
请问下报错是什么问题~~~搞郁闷了
谢谢~~