D
darrel
OK, due to peer pressure, I'm caving into the concept that one should have
the ASPX page TELL the ascx pages what's going on rather than vice versa.
;o)
I have an aspx page that needs to pass a property to the usercontrols it's
loading (some dynamically via codebehind).
I can certainly just pass the property as such:
<control:control1 property="myProperty" />
<control:control2 property="myProperty" />
<control:control3 property="myProperty" />
<control:control4 property="myProperty" />
Not a huge deal, but I was wondering if there was a way to pass the same
property to all controls at once programmitically just to simplify things a
tad. Something like allControlsOnThisPage.myProperty = "whatever"
I imagine I could first search for all controls, set that as an array, then
loop through each one to set all the properties. But, in the end, that seems
like more processing than it's worth.
-Darrel
the ASPX page TELL the ascx pages what's going on rather than vice versa.
;o)
I have an aspx page that needs to pass a property to the usercontrols it's
loading (some dynamically via codebehind).
I can certainly just pass the property as such:
<control:control1 property="myProperty" />
<control:control2 property="myProperty" />
<control:control3 property="myProperty" />
<control:control4 property="myProperty" />
Not a huge deal, but I was wondering if there was a way to pass the same
property to all controls at once programmitically just to simplify things a
tad. Something like allControlsOnThisPage.myProperty = "whatever"
I imagine I could first search for all controls, set that as an array, then
loop through each one to set all the properties. But, in the end, that seems
like more processing than it's worth.
-Darrel