最后一句提示,未处理的“System.StackOverflowException”类型的异常出现在 mscorlib.dll
stringconstr="server=PC-201108162042\\SQLEXPRESS;database=TBF;IntegratedSecurity=True...
string constr = "server=PC-201108162042\\SQLEXPRESS;database=TBF;Integrated Security=True";
SqlConnection mycon = new SqlConnection(constr);
mycon.Open();
string SQLString = "select * from banji";
SqlDataAdapter da = new SqlDataAdapter(SQLString, mycon);
DataSet ds = new DataSet();
da.Fill(ds);
mycon.Close();
mycon.Dispose();
this.GridView1.DataSource = ds.Tables[0];
GridView1.DataBind(); 展开
SqlConnection mycon = new SqlConnection(constr);
mycon.Open();
string SQLString = "select * from banji";
SqlDataAdapter da = new SqlDataAdapter(SQLString, mycon);
DataSet ds = new DataSet();
da.Fill(ds);
mycon.Close();
mycon.Dispose();
this.GridView1.DataSource = ds.Tables[0];
GridView1.DataBind(); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询