Error in multiple Panes under a single Tab control
Hi All,
I am trying to add multiple Panes under a single Tab control for my custom section But its showing the following error
Server Error in '/' Application.
Value cannot be null. Parameter name: child
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: child
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Error in multiple Panes under a single Tab control
Hi All,
I am trying to add multiple Panes under a single Tab control for my custom section
But its showing the following error
Server Error in '/' Application.
Value cannot be null.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Parameter name: child
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: child
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
And my code some what looks like this
<cc1:Pane ID="Pane1" runat="server" Height="600px" Width="330px">
<cc1:PropertyPanel runat="server" ID="pp_sample1" >
NIsh
</cc1:PropertyPanel>
</cc1:Pane>
<cc1:Pane ID ="Pane2" runat="server" Height="600px" Width="330px">
<cc1:PropertyPanel runat="server" ID="pp_sample2" >
NIsh2
</cc1:PropertyPanel>
</cc1:Pane>
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
// Tab setup
FirstTab = tabControl.NewTabPage("First");
FirstTab.Controls.Add(Pane1);
FirstTab.Controls.Add(Pane2);
//save button
ImageButton save = FirstTab.Menu.NewImageButton();
save.Click += new ImageClickEventHandler(this.save_click);
save.AlternateText = "Save";
save.ImageUrl = GlobalSettings.Path + "/images/editor/save.gif";
}
This is what i am searching for, two panes under one tab.
Thanks in Advance
Hi Guys,
Got the solution, the aspx was getting copied to a different folder in the post build event.
Anyways thanks.
is working on a reply...