Script controls may not be registered after PreRender

2 posts, 1 answers
  1. Simon831
    Simon831 avatar
    36 posts
    Member since:
    Sep 2005

    Posted 12 Jun 2008 Link to this post

    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?

  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 12 Jun 2008 Link to this post

    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
Back to Top