****** Moderator please delete. I discovered this behavior on other controls on the form, so the issue is not specific to DNN. ************
Folks,
I have a formView for editing or inserting records. The formView is named "FVSeries." In the ascx, I have the following code in BOTH the edit and insert templates:
<dnn:DualListControl ID="dlcTalks" runat="server" DataTextField="Text" DataValueField="Value" />
In the Page_Load or FVSeries_Load events (I've tried both), I am able to find this control on the form this way:
FVSeries.DefaultMode = formViewMode.Insert;
DualListControl dlc = (DualListControl)FVSeries.FindControl("dlcTalks");
But the moment I switch the form to Edit mode, this doesn't work. That is, the following code fails to find the control:
FVSeries.DefaultMode = formViewMode.Edit;
DualListControl dlc = (DualListControl)FVSeries.FindControl("dlcTalks");
But it's right there on the edit template. Only the DualListControl is behaving this way for me. Anyone else seen this?