Hey Guys,
Need some help!! I have numerous composite controls that I need to render based on what step in a wizard that a user is at. These controls will be rendered 1 at a time. I have created my templated composite controls and am using the Activator.CreateInstance to create which ever control needs to be created. The creation of the controls and rendering isn't a problem. I run into issues trying to capture the events coming off child controls (buttons, etc...) within the composite control that is being displayed. I have the INamingContainer interface in place to create unique ids for the child controls, but when you look at the "View Source" of the rendered page the name given to these inner most child controls are not showing an elongated name, like the parent controls are showing.
One of my parent controls has a name: "Left:blah_blah_blah:_ctl0:ctl1"
One of my inner-most child buttons has a name of: "_ctl2"
It just seems really strange that the inner most control has such a short name, being that the INamingContainer (I thought) was suppose to be pinpointing the location of the control.
Is this normal or am I totally losing it??
Any thoughts or help is greatly appreciated!!
Need some help!! I have numerous composite controls that I need to render based on what step in a wizard that a user is at. These controls will be rendered 1 at a time. I have created my templated composite controls and am using the Activator.CreateInstance to create which ever control needs to be created. The creation of the controls and rendering isn't a problem. I run into issues trying to capture the events coming off child controls (buttons, etc...) within the composite control that is being displayed. I have the INamingContainer interface in place to create unique ids for the child controls, but when you look at the "View Source" of the rendered page the name given to these inner most child controls are not showing an elongated name, like the parent controls are showing.
One of my parent controls has a name: "Left:blah_blah_blah:_ctl0:ctl1"
One of my inner-most child buttons has a name of: "_ctl2"
It just seems really strange that the inner most control has such a short name, being that the INamingContainer (I thought) was suppose to be pinpointing the location of the control.
Is this normal or am I totally losing it??
Any thoughts or help is greatly appreciated!!