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

Client Side error when adding a RegisterHiddenField within a UserControl preRender

2 Answers 82 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 10 Jan 2012, 03:19 AM
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 asp.net 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 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 16 Jan 2012, 11:11 AM
Hello,

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.

Greetings,
Simon
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
0
Troy
Top achievements
Rank 1
answered on 16 Jan 2012, 01:57 PM
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.
Tags
ScriptManager and StyleSheetManager
Asked by
Troy
Top achievements
Rank 1
Answers by
Simon
Telerik team
Troy
Top achievements
Rank 1
Share this question
or