Hi All,
I've seen a bit on the web about closing conncetions and datareaders.
I have consequently been putting try-catch-finally blocks around my connections and datareaders and closing the connections in the finally block.
My question is: If you have a data source or datareader dragged and dropped on to the HTML page (not expilitly define in the code behind), do you need to close it in the code behind or is this done automatically?
Also, what happens if you don't close data readers, connections etc?
Do datarepeaters need to be closed as well.
Tahnks
C
I've seen a bit on the web about closing conncetions and datareaders.
I have consequently been putting try-catch-finally blocks around my connections and datareaders and closing the connections in the finally block.
My question is: If you have a data source or datareader dragged and dropped on to the HTML page (not expilitly define in the code behind), do you need to close it in the code behind or is this done automatically?
Also, what happens if you don't close data readers, connections etc?
Do datarepeaters need to be closed as well.
Tahnks
C