I create a web form that will create any number of RadTextBoxes and RadComboBoxes based upon the results of a stored proc. The initial load runs creating the controls, adds them to a placeholder and then the controls are added to a collection, then saved to a session object. On post back, the session object repopulates the collection and then the collection is loop thru to place the controls back on the page. On the post back I am getting this error:
Exception Details: System.InvalidOperationException: Script controls may not be registered after PreRender.
Does anyone know how to fix this, has a work around or has a better solution to this?
Thanks.
Tim
Script controls may not be registered after PreRender.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.InvalidOperationException: Script controls may not be registered after PreRender.
Does anyone know how to fix this, has a work around or has a better solution to this?
Thanks.
Tim