Change web controls in one user control from another user control

Change web controls in one user control from another user control

Post by REo » Fri, 02 Dec 2005 00:49:07


Hi,

I have a user control that produces and maintains a student form for test
enrollment. It contains all functionality such as adding, editing,
suspending, etc., a student from a selected test instance.

The main page uses the student form control (above), plus a control that
produces the button pad (for administrative functionality) and one that
produces a student roster.

I need the student form control to be able to enable or disable buttons
located in the button pad control. How do I do that?

Thanks in advance,

Jim Hawley
 
 
 

Change web controls in one user control from another user control

Post by UGhpbGxpcC » Fri, 02 Dec 2005 04:33:02

The button pad control has to expose (i.e. make public) properties that allow
the parent control (the student form control) to change the Enabled attribute
values for the buttons that you wish to disable.
--
HTH,
Phillip Williams
http://www.yqcomputer.com/
http://www.yqcomputer.com/