M
Martin
Hi,
I want to create a number of ascx controls with edit and view modes.
Previously I have put two panels in the ascx - one for view (with label
subcontrols), and one for edit (with text box controls).
I control the visibility of the panels according to what mode the ascx is
in.
This works fine to a point - the controls in the panels share the same data
bindings, and from outside the ascx file it is nice and easy to use with
properties.
The disadvantage is some UI duplication within the 2 panels.
I don't want to use any repeater controls (like datagrid), because my data
is not repeating.
What is the design pattern for this problem?
Thanks
Martin
I want to create a number of ascx controls with edit and view modes.
Previously I have put two panels in the ascx - one for view (with label
subcontrols), and one for edit (with text box controls).
I control the visibility of the panels according to what mode the ascx is
in.
This works fine to a point - the controls in the panels share the same data
bindings, and from outside the ascx file it is nice and easy to use with
properties.
The disadvantage is some UI duplication within the 2 panels.
I don't want to use any repeater controls (like datagrid), because my data
is not repeating.
What is the design pattern for this problem?
Thanks
Martin