N
Nick Stansbury
Hi,
I have a loop running on Page_PreRender that sets a number of controls
to invisible based on a set of criteria. Before I do this however, I set all
of the drop down lists to be visible with a straightforward recursive loop.
Now - I'm really muddled by this - why does this:
If TypeOf Ctl Is DropDownList Then
Ctl.Visible = true
End If
Set the control to be INVISIBLE? How is this possible - I put a breakpoint
in at the first of these lines, evaluate ctl.visible, the debugger returns
"true", step forward one line, evaluate ctl.visible, still true, move on to
the third line, and now ctl.visible = false !!!!! How is this possible? Can
someone please help me? For now, I've created a css class called "invisible"
which uses css to set the control to invisible, but the effect isn't the
same and it's going to make the page a whole bunch bigger.
Any ideas?
Nick
I have a loop running on Page_PreRender that sets a number of controls
to invisible based on a set of criteria. Before I do this however, I set all
of the drop down lists to be visible with a straightforward recursive loop.
Now - I'm really muddled by this - why does this:
If TypeOf Ctl Is DropDownList Then
Ctl.Visible = true
End If
Set the control to be INVISIBLE? How is this possible - I put a breakpoint
in at the first of these lines, evaluate ctl.visible, the debugger returns
"true", step forward one line, evaluate ctl.visible, still true, move on to
the third line, and now ctl.visible = false !!!!! How is this possible? Can
someone please help me? For now, I've created a css class called "invisible"
which uses css to set the control to invisible, but the effect isn't the
same and it's going to make the page a whole bunch bigger.
Any ideas?
Nick