===再问"asp.net站点当机"现象????
还是链接池已满,超最大链接数,"This may have occurred because all pooled connections were in use and max pool size was reached."
我的首页放了一个datagrid,四个datalist.从数据库读出到数据集.
调用data()类下面的成员:
public class data
{
...
public DataSet dbbind(string sql)
{
SqlConnection Con = new SqlConnection(data.constr);
SqlDataAdapter objAdapter = new SqlDataAdapter(sql, Con);
DataSet objDataSet= new DataSet() ;
objAdapter.Fill(objDataSet, "mytable");
Con.Close();
return objDataSet;
}
}
这有什么不妥? 请高手指点问题出在哪里???