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.
Did you know?Explore Trending and Topic pages for more stories like this.
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
Time script, set to my time zone?
I am using this line to get the date and time
Code: $time = date(F." ".d.", &q
i have no idea why this isn't working
Code: <?php
session_start();
include("connect.php");
error_reporting(E
Help with explandable category tree
I have the below query:
SELECT l1.id as lev1_id,l2.id as lev2_id,l3.id as lev3_id,l1.categ
I face problems to extract data from one table and insert it in another one
Hi,
For modifications, I have to extract data from one table and insert it in another one
CRM?
I think that's what they're called. Customer Management System? Anyway. Is there any good free ones
Socket programming
Hello all,
I have a PHP socket script. GPS trackers connect to this socket. IMEI verification
How to limit the calls to an API
Hello, in my simple script I call an api which effectively involves me getting an xml file.
H
On page view, minus credit
Hello all, please, I need a little help with this script. I am charging one credit (credits can be p
Form always sends to error page...
Hello,
Any help will be greatly appreciated. I am having trouble getting multiple fields to be re
Results from Db outputted twice
Hey guys.. for come reason my data is outputted twise shown in the image below and i cant figure out