I recently upgraded to prometheus, and my existing code which was working broke. Previously I used to access child controls inside raddock using code below
Label Label1 = (Label)RadDock2.FindControl("lblEvents");
Label1.Text = "my string here";
ASP.NET code
<telerik:RadDock ID="RadDock2" runat="server" Text="Events">
<ContentTemplate>
<asp:Label ID="lblEvents" runat="server"></asp:Label>
</ContentTemplate>
</telerik:RadDock>
Now, its throwing System.NullReferenceException at Label1.Text = "my string here";
Any help appreciated.
Thanks,
ABy
Label Label1 = (Label)RadDock2.FindControl("lblEvents");
Label1.Text = "my string here";
ASP.NET code
<telerik:RadDock ID="RadDock2" runat="server" Text="Events">
<ContentTemplate>
<asp:Label ID="lblEvents" runat="server"></asp:Label>
</ContentTemplate>
</telerik:RadDock>
Now, its throwing System.NullReferenceException at Label1.Text = "my string here";
Any help appreciated.
Thanks,
ABy