pagerequestmanager

jQuery's $() function always returns 'undefined' with AJAX

i've noticed that popup shows BEFORE text gets updated in the textbox, i guess js gets called before the page gets rendered ... that would explain the 'undefined' popup ... how do i make sure js gets called AFTER the page is rendered? rewriting to make it as simple as possible: <body> <form id="form1" runat="server"> <asp:ScriptMan...

Check what control initiated AJAX Request

asp.net 2.0 / jQuery / AJAX <script type="text/javascript"> //updated to show proper method signature var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_endRequest(hideMessage); function hideMessage(sender, args) { var ctl = args.get_postBackElement(); //check if ctl is the disired control //hide user notifi...

Assyncronous interaction using Sys WebForms PageRequestManager

Hi guys, I'm trying to display a panel to the user when an asynchronous call is made, but only if that happend from a specific call. using the normal "get control" script I have mine like: function pageLoad() { try { var manager = Sys.WebForms.PageRequestManager.getInstance(); manager.add_endRequest(OnEndRequest);...

How to execute javascript once an update panel refreshes (Can't get Sys.WebForms.PageRequestManager.getInstance().add_endRequest(); to work)

I'm trying to run javascript once an update panel has refreshed. I've read a few places that you can use code similar to this: function codeToRun() { //Code Here } Sys.WebForms.PageRequestManager.getInstance().add_endRequest(codeToRun); But it doesn't seem to be working... any ideas? I've tried putting the code inside the Content...

ScriptManager1.AsyncPostBackErrorMessage not showing error message

I've always used the following two bits of code (which use to work) to catch Ajax asyncPostBackErrors. <asp:ScriptManager ID="ScriptManager1" runat="server" OnAsyncPostBackError="ScriptManager1_AsyncPostBackError" /> and protected void ScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e) { ScriptManager1...

PageRequestManagerParserErrorException nightmares, fear

Hi all, I get PageRequestManagerParserErrorException error in my app: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Det...

C# UpdatePanel Update seems to be working in Firefox but not IE

I've got a page with several Update Panels on it. The first has a panel with a gridview which has an event to close the panel and update the UpdatePanel - then populate a control in a second updatepanel. It seems to work fine in firefox but in IE the panel appears to not respect the visible=false. The gridview is not databound so it do...