embedding a panelBar inside a UserControl

2 posts, 0 answers
  1. Clive Hoggar
    Clive Hoggar avatar
    334 posts
    Member since:
    Nov 2008

    Posted 28 Oct 2011 Link to this post

    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


  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 02 Nov 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top