Author: chajo10 | Posted on: 7/8/2009 9:22:17 AM | Views : 250

Greetings,
 
Currently, I'm having troubles tracking a panel that I build dynamically.  Here is the what is going on:
The page first loads with a CheckboxList on it, which has an OnSelectedIndexChanged event.  Also, there is a panel below the CheckboxList that is visible, but has nothing within it.  A user clicks a specific item within the CheckboxList, causing the code behind to build a panel.  here is the code for the panel.
public void BuildNeighborhood(List<DTONeighborhood> neighborhood, string NeighborhoodName) { //For each Neighorhood, you need a panel to hold it all, a repeater (which has a checkbox and //a label within it), and a label. Panel pnlNeighborhood = new Panel(); Label lblNeighorhood = new Label(); Label lblSpacer = new Label(); CheckBoxList cblNeighorhood = new CheckBoxList(); ...

Go to the complete details ...