Web user control
-
How to hide or show a web user control on a form when a button on the form is clicked. aasstt
First of all, you should find the user control, and then hide the control. Control m_userCtrl = this.Page.FindControl("UserControlID"); if(m_userCtrl!=null){ m_userCtrl.Visible = false; }
-
How to hide or show a web user control on a form when a button on the form is clicked. aasstt
-
How to hide or show a web user control on a form when a button on the form is clicked. aasstt
I have a similar question. I have a log-in field placed within a user control. This user control is used to display this area of the page content in a similar fashion to in classic asp. How do i then disable these fields within the control? Obviously i would use something like
TextBox1.Enabled=false;
from within the user control. But i cant do this as i need to disable it on the page the control is called from. Help appreciated. Thanks!!1 -- modified at 11:57 Wednesday 28th December, 2005 ive even tried:userControl.TextBoxId.Enabled = false;
but this gives the error of the control being unaccessable due to its protection level. But i cant see how to change this protection level.