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
Automatic Webpage ??
I have a page www.mysite.com/test.php with a
<form>
<textarea name=&q
Thread in PHP
Thread in PHP
Some basic use and basic code for thread in php
This is my question?
Preventing SQL Injection
I have a question about SQL Injection, In some of our code we use this:
view plaincopy to clipboa
array ...
hi
Code: function formatCategories($categories, $parentId)
{
// $navCat stores all child
Array question
Does anyone know how to create a program that takes the $ amount for 8 different departments and gi
convert static html data into dynamic
hi all
i need to convert a website which has static above 2000 articles into dynamic and add
ereg_replace in Wordpress
Heya - so I'm working on this site: http://world-of-smiles.theportlandco.com/new-patients
The
SAP Business Suite
Hi all:
Within the SAP Business Suite solution I would like to ask you the main differenc
Not adding to db
Hi, I can't figure out why it won't add the record to the database. It's just a simple form to get
Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne