Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi
how to use dispose method in asp.net

can u send me links.
Posted

Try:
C#
myObject.Dispose();
 
Share this answer
 
Comments
Pravin Patil, Mumbai 27-Aug-11 9:22am    
Very simple and effective. My 5.....
The .Net framework is the .Net framework, no matter what platform you use it on (ASP.Net, Winforms, WPF/Silverlight, console). If the method is available, you can use it.
 
Share this answer
 
Comments
Pravin Patil, Mumbai 27-Aug-11 9:23am    
I agree with you, just as a reference I have tried to give some links...
Just to add to the answers by John and OriginalGriff.
Dispose method is used to free the resources used by the application.

Refer
1. When to use Dispose Method[^]
2. How to use Dispose[^]
3. When to use Dispose & When to use Finalise[^]
4. One more article[^]

Hope this helps.
All the best.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900