Page Dispose

M

mac

Hi!


Please help me on this, How can I dispose all the object variables I
recently declared on my form ?
seuppose I have this code.



Private dt as datatable
Private ds as dataset


My questions is how can I dispose this private variables before closing the
page?



Thanks and Regards
Mac
 
E

Eliyahu Goldin

Why shall you care? Dotnet will do it for you automatically. Some things,
like database connections, should be disposed explicitely, but dataset and
datatable are regular classes.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top