CS0135: “Str”与声明“classroom_teaching_table_list.Str”冲突
源错误:
行 46: else
行 47: { string Str = "select Department,TeacherName,Course,Expert,date from ShuangYu where (Expert='" + lblExpert.Text + "')"; }
行 48: SqlDataAdapter sms_adp = new SqlDataAdapter(Str,sms_conn);
行 49: DataSet sms_ds = new DataSet();
行 50: sms_adp.Fill(sms_ds);
源文件: c:\Documents and Settings\Administrator\桌面\JXDD\classroom_teaching\table_list.aspx.cs 行: 48
文件名叫table_list.aspx,放在classroom_teaching文件夹中,大家看看是怎么回事?
[解决办法]
string Str声明了两次