IDENTIFYING CHECKBOXLIST CONTROL within CUSTOM PLACEHOLDER CONTROL

IDENTIFYING CHECKBOXLIST CONTROL within CUSTOM PLACEHOLDER CONTROL

Post by QW5nZWx » Wed, 16 Jul 2008 19:58:07


Hi..im going around in circles with this and any help would be much
appreciated...

Here goes...

My senario is - I have a checkboxlist with a number of theme subjects...when
the user checks one or more checkboxes we are supposed to display relevant
category checkboxlists...My idea was to create all my Category checkboxlists
within my CreateAuthoringChildControls and set visibility to false then
within the Themecheckboxlist_SelectedIndexChanged event manage the switching
off and on of the relevant category checkbox lists...

So what I do is within the CreateAuthoringChildControls I loop through all
my theme channels and create the ThemeCheckboxList items...

At the same time I create a category checkboxlist for each theme channel and
set its ID to be the theme channel.displayname through a seperate
function...This all works fine..

However when I try to access the category checkboxlists within the
ThemeCheckboxlist_SelectedIndexChanged event I can't seem to. I should also
mention that this functionality is sitting inside a custom placeholder
control...I've tried using me.findcontrol and page.findcontrol with no
success....

Can anyone point me in the right direction...

thanks
 
 
 

IDENTIFYING CHECKBOXLIST CONTROL within CUSTOM PLACEHOLDER CONTROL

Post by George Lei » Wed, 16 Jul 2008 23:26:32


This is much more of a .NET question. What type of placeholder have
you used? Using HTML or XML for this the Placeholder content is
technically just a string! Therefore no SelectedIndexChanged events!