Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Unload Usercontrol

Reply
Thread Tools

Unload Usercontrol

 
 
Max3vil
Guest
Posts: n/a
 
      09-25-2006
I Had realized a user contro ctrlContro and i load it in this way:

ctrlControl c1=new ctrlControl
c1.Partent=this;
c1.Show();

this is right, how do i unload this controls ?

c1.dispose();
c1=null

is wrong

tnx


 
Reply With Quote
 
 
 
 
Muhammad Mosa
Guest
Posts: n/a
 
      09-26-2006
Are you talking about Windows UserControl?!
if so you need to know that this is:
Discussions in dotnet.framework.aspnet.buildingcontrols
Which is ASP.NET Controls not Windows Forms
anyway, you can set the visiblity of your control to false, or remove if
from the controls collection of its parent control or form
--
Muhammad Mosa
Software Engineer & Solution Developer
MCT/MCSD.NET
MCTS: .Net 2.0 Web Applications
MCTS: .Net 2.0 Windows Applications


"Max3vil" wrote:

> I Had realized a user contro ctrlContro and i load it in this way:
>
> ctrlControl c1=new ctrlControl
> c1.Partent=this;
> c1.Show();
>
> this is right, how do i unload this controls ?
>
> c1.dispose();
> c1=null
>
> is wrong
>
> tnx
>
>
>

 
Reply With Quote
 
 
 
 
Afton Wynona
Guest
Posts: n/a
 
      09-29-2006
try the http.cookieUnload() function , or reinstall windows.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting a property of a control inside a usercontrol, from another usercontrol Fabiano ASP .Net 2 06-03-2005 09:56 AM
accessing usercontrol from another usercontrol Phl ASP .Net 2 11-18-2004 07:33 PM
Access a control inside an usercontrol from another control inside another usercontrol nail ASP .Net 0 09-15-2004 03:55 PM
Can we use a usercontrol inside a usercontrol Rajesh Tiwari ASP .Net 0 08-12-2003 03:56 PM
Use LoadControl to load a usercontrol but the webcontrol in the usercontrol can not AutoPostBack huobazi ASP .Net 1 07-03-2003 03:14 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57