public 登录Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (name == "" || textBox1.Text.Trim() == "" )
{
MessageBox.Show("该信息不可为空!");
}
else
{
name = textBox1.Text.Trim();
SqlConnection conn = new SqlConnection(connectionString);
conn.Open();
string sql = "";
sql ="select * from 登录信息表 where 用户名 = '" + textBox1.Text + "'" + "and 密码 = '" + textBox2.Text + "'";
SqlDataAdapter adp = new SqlDataAdapter(sql, conn);
DataSet ds = new DataSet();
在conn.open处出现了这种提示,请问这是由什么原因导致的
错误提示信息呢?
什么提示?请把错误截图贴出来。
中文表名、字段名 需转义