JavaScript Alert: The Panel specified in ResizePanel1ID cannot be located

Document Type:

 Problem

PanelSet for ASP.NET

Product Name:

 PanelSet for ASP.NET

Product Versions:   

 All

Last Updated:

 3/27/2011

Document ID:

 277

Symptoms

Using a PanelSet.Splitter with resizing capability, a JavaScript Alert appears with details stating a specified Panel cannot be located.

Cause

When PanelSet Alerts are enabled (PanelSet.AlertsEnabled = true), this message could appear if a PanelSet.Splitter cannot locate the Panel.ID referenced by the Splitter.ResizePanel1ID or ResizePanel2ID properties.

If this is occurring and a syntax error cannot be found, then the most likely reason is that the ASP.NET Framework has prefixed the ID of the Panel at run-time with an additional identifying value. This is common when using ASP.NET UserControls or MasterPages to encapsulate UI logic.

Resolution/Workaround

When this occurs, it is best to set the value of the ResizePanel1ID and ResizePanel2ID properties programmatically with a Panel's ClientID, which will return the correct run-time value:

Splitter.ResizePanel1ID = Panel.ClientID;

Coalesys Newsfeed News Archive

11/15/2012 - New Release: Navigation-UI v6.0 (All Platforms)

2/19/2012 - Update: WebMenu v5.1.98 and PanelBar v4.0.98 (All Platforms)

3/15/2011 - Windows Internet Explorer 9 released, supported by Coalesys DHTML products.

10/7/2010 - Update: Mercury-UI (All Platforms), and WebMenu 5.1 introduced!

11/18/2009 - Update: WebMenu v5.0.96 and PanelBar v4.0.96 (All Platforms)