I'm making use of a number of web user controls in a web page.
I'm making use of Visual Studio (with C# code)
The first of these has a simple MultiView control in it with 2 View's.
The second has a series of ASPxButtons - sharing the same GroupName - so that only one can be checked at a time.
For each ASPxButton there is an associated 'div' which contains a LiteralControl (displaying a FusionChart).
The appropriate 'div' is displayed according to the following code:
<ClientSideEvents CheckedChanged="function(s, e) {
if (s.GetChecked())
{
divSurgeryUsage.style.display = 'block';
}
else
{
divSurgeryUsage.style.display = 'none';
}
}" />
... so only one div (and corresponding LiteralControl is shown at any one time.
This control works ok in it's own right.
But I've now introduced it into a page with my first control (containing the simple MultiView).
When I move between View's in the MultiView control in this first control - the second control then behaves oddly - and the displayed LiteralControl (in the appropriate 'div') is no longer seen. It is only shown again by re-clicking the buttons in the second control.
How can I have these controls work together - so that the first makes use of the MultiView and the second makes use of the ClientSideEvents as detailed above?
Any help / pointers would be appreciated.
Thanks in advance,
Steve
I'm making use of Visual Studio (with C# code)
The first of these has a simple MultiView control in it with 2 View's.
The second has a series of ASPxButtons - sharing the same GroupName - so that only one can be checked at a time.
For each ASPxButton there is an associated 'div' which contains a LiteralControl (displaying a FusionChart).
The appropriate 'div' is displayed according to the following code:
<ClientSideEvents CheckedChanged="function(s, e) {
if (s.GetChecked())
{
divSurgeryUsage.style.display = 'block';
}
else
{
divSurgeryUsage.style.display = 'none';
}
}" />
... so only one div (and corresponding LiteralControl is shown at any one time.
This control works ok in it's own right.
But I've now introduced it into a page with my first control (containing the simple MultiView).
When I move between View's in the MultiView control in this first control - the second control then behaves oddly - and the displayed LiteralControl (in the appropriate 'div') is no longer seen. It is only shown again by re-clicking the buttons in the second control.
How can I have these controls work together - so that the first makes use of the MultiView and the second makes use of the ClientSideEvents as detailed above?
Any help / pointers would be appreciated.
Thanks in advance,
Steve