views:

4985

answers:

5

I have report on my asp page and every time I change a filter and click view report, I get this error:

Microsoft JScript runtime error: 'this._postBackSettings.async' is null or not an object

I tried change the EnablePartialRendering="true" to EnablePartialRendering="false" but then people can't login on the site

+1  A: 

Put the button inside a panel (not update panel), then add this line to the panel DefaultButton="Button1"

This will avoid the error.

A: 

I had exactly the same problem but the solution made no difference

+1  A: 

I also had this problem, although in my case there were no reports involved: it was a just a normal asp.net page with an image button. The thing was that on client click I was cancelling the next javascript events with this code:

event.cancelBubble = true;
if (event.stopPropagation)
    event.stopPropagation();

I removed the code and the problem also disapeared. My guess is that asp.net ajax needs to do some processing on client click and maybe your report control is doing something like I was doing. Hope it helps you find your problem and sorry for my english :) Regards, MMM

+1  A: 

I got this problem just now and found a solution by accident.

Problem started showing up after I moved the ScriptManager to a master page - and only when I was using pages with no update panels.

Solved it by moving the ScriptManager tag to just in front of the content area of the master page.

JavaScript ordering problems?

Robin Malmberg
Very strange, but your comment just fixed the very same problem I had with master pages and pages with no update panels.Thanks!
JamesPickrell
A: 

This problem is solved by setting EnablePartialRendering to false of ScriptManager ScriptManager1.EnablePartialRendering = false; in OnInit event of the page where rsweb:ReportViewer is used. If you want to enable for other page then set it true on master page's OnInit

Sunil Pandey