drpopedom = cmdpopedom.ExecuteReader();
Session["oldpopedom"] = drpopedom;
在另外一个函数如下读取时
SqlDataReader dr = (SqlDataReader)Session["oldpopedom"];
while(dr.Read())
提示错误:阅读器关闭时 Read 的尝试无效
------解决方案--------------------------------------------------------
drpopedom = cmdpopedom.ExecuteReader();
Session["oldpopedom"] = drpopedom;
之后close了??
------解决方案--------------------------------------------------------
SqlDataReader 工作的时候必须与服务器连接!