日期:2014-05-18 浏览次数:20937 次
SqlDataAdapter adapter=new SqlDataAdapter("SELECT Passwd FROM passwd WHERE Name = 'admin ' ", cnn); DataTable dt=new DataTable(); adapter.Fill(dt); if(this.TextBox1.Text.Trim()==table.Rows[0][0].ToString().Trim())
------解决方案--------------------
SqlDataAdapter adapter=new SqlDataAdapter("SELECT Passwd FROM passwd WHERE Name = 'admin ' ", cnn);
DataTable dt=new DataTable();
adapter.Fill(dt);
if(this.Me.TextBox1.Text.Trim()==table.Rows[0][0].ToString().Trim())