how to remove user control

  • Thread starter Thread starter anshul
  • Start date Start date
A

anshul

Can any bos tell me how do i remove the user control from
a web worm using the code in page_Load event.
Anshul
(e-mail address removed)
 
You can remove the user control (user1) from your web form using this
method. Assume you have one form(Form1) in your page.
Page.FindControl("Form1").Controls.Remove(Page.FindControl("form1").FindCont
rol("user1"))
 
Back
Top