Client Side error when adding a RegisterHiddenField within a UserControl preRender

3 posts, 0 answers
  1. Troy
    Troy avatar
    31 posts
    Member since:
    Oct 2011

    Posted 09 Jan 2012 Link to this post

    I have a UserControl that eventually is placed within a page that uses a MasterPage.  The master page has a RadScriptManager.  In the preRender of my UserControl I am getting a reference to the scriptManager and calling: RegisterHiddenField.

    When the page loads I see a client side script error in firebug.
    The error is: data is undefined and appears to occur in an embedded ajax javascript file within a function with the signature of:
    Function.createDelegate(this, this._scriptLoad...

    I really need to get this working.  Any help you can provide will be greatly appreciated.

    I am using ASP.NET AJAX RadControls version: 2010.1.519.35
  2. Simon
    Simon avatar
    2281 posts

    Posted 16 Jan 2012 Link to this post


    Does this error occur if you are using ScriptManager instead of RadScriptManager?

    If it doesn't, we will need more information about your setup because calling RegisterHiddenField in our tests did not produce an error. Please give us a link to an archive with your project files or open a support ticket and send it to us there.

    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. Troy
    Troy avatar
    31 posts
    Member since:
    Oct 2011

    Posted 16 Jan 2012 Link to this post

    I have resolved the issue.  I am using this in conjunction with IScriptControl to maintain client state. I just needed to add my hidden field to my ScrptControlDescriptor as an .AddElement(..).  That resolved the issue.
Back to Top