Timer control causing error
Posted on
16th Feb 2014 07:03 pm by
admin
I recently decided to add a timer control to an existing page that uses AJAX on my site. As soon as I added the timer control and ran my app, I started getting the following error: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 before PreRender.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Script controls may not be registered before PreRender.]
System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +236
System.Web.UI.Timer.OnPreRender(EventArgs e) +75
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
I've been using AJAX on this page for months. Why is this timer control suddenly causing me to get a control validation error? Chopped down version of the front end code:1
2
3 4 5 6 The error occurs on page load. I don't get any compilation errors. Any thoughts?
No comments posted yet
Your Answer:
Login to answer
81
43
Other forums
How to generate a text file using php...?
Hi,
Can anyone give me code to generate a text file using php
Thanks in advance
extract a file from zip file
hi,
i know how to unzip a zip file in php, but is there a way to just extract a certain file only
Email "$"
Hello!!
Any PHP guy with a bit of a knowledge in Flash ?
When I send a JPEG from flash
Blank record injected into database
I always found several blank records inside my database, although $SESSION is required to insert the
Extracting URL pointer within XML tag
Hi.
I'm trying to extract text between two quotation marks in XML. For example, I want to ex
need help in creating captcha
hi i have a problem creating captcha system. i create some basic script for image displaying but it
single values into sql field
i have a form which i want the user to able to select multiple answers. But i want the answers to be
Extract text from string
Hi folks,
I have a string that looks like this:
aaaaaaaaaa:
bbbbbbbbbb (ccccccccc)
Variable uses and placement
I'm new to PL/SQL and am trying to learn about variable valid uses/placement (any pointers to any do
JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php
The page w