Hi
I'm having a very bizarre situation with a DNN installation (4.3.5).
I copied a working website with about 25 developed modules, created a new DB and run the installation.
After adding my modules, one of them is failing to load on exception.
The problem is that during Page_Load, any call to FindControl inside a FormView return NULL (controls not found), and thus causing an exception.
The FromView is always in ReadOnly mode (default).
This is VERY strange, as I've never had that before, and all the other modules are working fine!!!
I tried to remove this module and re-insert it, load it on a different page, etc but nothing helps!
I really don't want to install the whole site from scratch, and I can't find the root cause of this problem!!
Has anyone seen such behavior before?
What might be the problem?
Many thanks!
Ofer Bar
Here are some code snippets:
<asp:FormView ID="FormView1" runat="server" Width="100%" DataSourceID="EODS_Overview" BackColor="#FFFFFF" DefaultMode=ReadOnly>
<ItemTemplate>
<asp:Table runat="server" Width="100%">
<asp:TableRow>
<asp:TableCell cssclass="innertdTab">
<asp:Table runat=server width="100%" BorderWidth="0" cellspacing="0" cellpadding="0">
<asp:TableRow>
<asp:TableCell width="99%" VerticalAlign="top">
<div align="center"><asp:Literal runat=server ID="litPhpflash"></asp:Literal></div>
</asp:TableCell>
Literal litPhpflash = (Literal)FormView1.FindControl("litPhpflash");
litPhpflash.Text = sb.ToString(); // this is failing, since litPhpflash == null