I've lost my C# Panel Controls....
the asp for my panel is
<asp:Panel ID="pnlSett1" GroupingText="Contra Account 1" runat="server"
Width="400" >
</asp:Panel>
I've set up the controls in code behind using
Label lblCompanyNumber = new Label();
lblCompanyNumber.Text = "ABCDEF";
lblCompanyNumber.ID = "CompanyNumber";
pnlSett1.Controls.Add(lblCompanyNumber);
But after the panel is populated and the user clicks on the ContraUpdate button (postback) ---
protected void btnContraUpdate_Click(object sender, EventArgs e)
Control pnlCompanyNumber = pnlSett1.FindControl("CompanyNumber");
it can't find the control....Null value returned
Any ideas, i've tried putting the Find Control after the initial Control Add to prove the FindControl
is correct and it is, but then I tried it on the PageLoad on the way back in, and that brings back Null value as well......