J
John Kotuby
Hi all,
On several pages I am using JavaScript to keep track of PageRequestManager
events. Here is the code:
<script type="text/javascript">
//================================================================
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(InitializeRequest);
prm.add_endRequest(EndRequestHandler);
var postBackElement;
Of course there are other JavaScript functions not shown here and there is a
closing </script> tag.
I have an asp:ScriptManager declared on every page that I use this
technique.
The only major difference that I see in the page that throws the error is
that it is not wrapped in a Master Page.
The pages in which run fine with the exact same JS call have the...
var prm = Sys.WebForms.PageRequestManager.getInstance();
....located within the <asp:Content> tags.
While seaching for answers ( most of which state that there must be missing
elements in web.config), I came across one person who said it is possible
that the JavaScript is being run before the page completely loads.
I am presuming that my entries in web.config are correct because the call to
Sys.Webforms in all my other pages works just fine.
Does anyone have an idea what might actually be causing this error in one
page only?
Thanks for any help.
On several pages I am using JavaScript to keep track of PageRequestManager
events. Here is the code:
<script type="text/javascript">
//================================================================
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(InitializeRequest);
prm.add_endRequest(EndRequestHandler);
var postBackElement;
Of course there are other JavaScript functions not shown here and there is a
closing </script> tag.
I have an asp:ScriptManager declared on every page that I use this
technique.
The only major difference that I see in the page that throws the error is
that it is not wrapped in a Master Page.
The pages in which run fine with the exact same JS call have the...
var prm = Sys.WebForms.PageRequestManager.getInstance();
....located within the <asp:Content> tags.
While seaching for answers ( most of which state that there must be missing
elements in web.config), I came across one person who said it is possible
that the JavaScript is being run before the page completely loads.
I am presuming that my entries in web.config are correct because the call to
Sys.Webforms in all my other pages works just fine.
Does anyone have an idea what might actually be causing this error in one
page only?
Thanks for any help.