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

Script controls may not be registered after PreRender

1 Answer 83 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Simon831
Top achievements
Rank 1
Simon831 asked on 12 Jun 2008, 12:14 PM
Since upgrading to Asp.net Ajax I have been getting the error:

"Script controls may not be registered after PreRender. "

This occurs in a custom control that creates a RadDatePicker control and tries to execute:

Controls.Add(radpicker);

What has changed that stops this from working?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 12 Jun 2008, 12:42 PM
Hello Simon831,

If this is done after PreRender you will get this error.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar
Asked by
Simon831
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or