Thank you. I presume by "control" I have to use the user control ID, right?
>octrl = Page.FindControl("control")
>
>
>>>>Page has user control (mycontrol.ascx)
>>>>
>>>>If I want to make it invisible or remove it in the Page_Load method, how do you do it?
>>>>
>>>
>>>You probably don't need to remove it. Making it invisible has pretty much the same affect. All you need to do is set the Visible property to false and ASP.NET will basically skip output generation for this control (ie Render() doesn't fire).
>>>
>>>You can also use the Controls collection to remove the user control entirely.
>>>
>>
>>My problem was that I could not figure out (still don't know how) to find this user control in the Controls collection. So I had to change the approach to get around this problem.
>>
>>Thank you for your input.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham