It is containing all topics related to Visual Basic, .NET Framework, Web Resource, GDI etc.
- Posts: 295
- Joined: Sat Sep 20, 2014 5:26 pm
How can we force the connection object to close after my data reader is closed?
Command method Executereader takes a parameter called as CommandBehavior wherein we can specify saying close connection automatically after the Datareader is close.
pobjDataReader = pobjCommand.ExecuteReader(CommandBehavior.CloseConnection)
Return to “Visual Basic .NET and ASP.NET”
Users browsing this forum: No registered users and 1 guest