views:

666

answers:

1

I'm upgrading an ASP.NET 1.1 app and have things working but am seeing the Javascript error referenced in the title. From research it appears that ASP.NET is not spitting out the javascript that is used to maintain scroll position between postbacks.

I did some googling and have checked the various issues mentioned but can't seem to find what might be going on.

Environment details:

  • IIS 6 on Win Server 2003
  • The virtual directory is running ASP.NET 2.0.50727
  • I have set maintainScrollPositionOnPostBack="True" in the section of web.config

Any ideas?

+1  A: 

Do you have any httphandlers or httpmodules that do any kind of request filtering or re-writing ? or anything special in global.asax that would prevent the javascript from coming down ? I would guess that something is blocking the built in axd request to get the javascript that deals with WebForm_SaveScrollPositionSubmit.

To find out for sure fire up Fiddler and watch the HTTP requests and make sure they are all happening correctly.

Also make sure there is at least 1 and only 1 form on the page.

Mcbeev