From: le r. a. <ar...@me...> - 2006-05-26 09:07:28
|
Hello, I have a problem with this code in an asp.net 2.0 applicattion: FbDataReader d; FbConnection fb = new FbConnection(ConfigurationManager.ConnectionStrings["Template"].ConnectionString); fb.Open(); FbCommand fc = new FbCommand("select * from categories", fb); d = fc.ExecuteReader(CommandBehavior.CloseConnection); GridView1.DataSource = d; GridView1.DataBind(); The problem is that the connection is not closed after the gridview databind and the property fbdatareader.isclosed is false or with other provider as oracle or sql server the connection is closed It'is a bug or not ? |