This is a migrated thread and some comments may be shown as answers.

embedding a panelBar inside a UserControl

1 Answer 62 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 28 Oct 2011, 05:56 PM
HI guys

I have a website with two types of master page, but both containing the same panelBar menu.
For maintainability, I want to have only a single place to update the menu so I thought I should
put it into ascx UserControl, and followed MS guidelines for the embedding

It actually works fine if I turn off debug in Internet Explorer (I am using Visual Studio 2010 btw), but when debug is on I get this error

SCRIPT5007: Unable to set value of the property 'control': object is null or undefined
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl03_TSM&compress=1&_TSM_CombinedScripts_
=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%
3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%
3bTelerik.Web.UI%2c+Version%3d2010.3.1109.20%2c+Culture%3dneutral%2c+PublicKeyToken%
3d121fae78165ba3d4%3aen-US%3a0b207b76-976c-4925-ba92-57c3001b0b77%3a16e4e7cd%3af7645509%
3a24ee1bba%3a1e771326%3a4cacbc31, line 6 character 74101

The ascx file is like this:

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="menuBar.ascx.vb" Inherits="UserControls_menuBar" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Skin="myBlack" Width="175px"
                        EnableEmbeddedSkins="False" PersistStateInCookie="True">
etc etc
</telerik:RadPanelBar>

I would like to avoid the error in case it causes problems to visitors.  Can you shed any light on this?
The error is within the telerik dll it seems.

Thanks for any help!

Clive


1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 02 Nov 2011, 08:35 AM
Hello Clive,

Please, open a support ticket and send us a sample reproducing the problem.

Regards,
Nikolay Tsenkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
PanelBar
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or