views:

3686

answers:

4

This is perhaps related to this question, but I have slightly more information.

I recently updated an ASP.Net application to .NET 3.5 after coding a few new pieces with Linq. Now my pages intermittently stop firing event handlers. I have it narrowed down to pages with Ajax on them, and I assume it's either the ScriptManager or the AjaxControlToolkit registration that is precipitating the problem.

The really screwy part is that pages seem to work fine about 2/3s of the time, and the controls lose their event handlers only 1/3 of the time. I wondered about some type of error occurring and the page not rendering correctly, but I cannot find evidence of this.

A: 

i have only used Telerik Ajax controls so far, and my observation is if an exception occours in a Ajax enabled control, nothing happens. No exception report, no action. nothing.

Maybe you should test you app without ajax to identify any problem spots

Midhat
No errors -- if i remove the AJAX pieces everything works appropriately. And like I mentioned, about 66% of the time it works appropriately AS IS, with the Ajax libraries still in the markup.
nathaniel
A: 

My initial thought would be that something is happening where the javascript is erroring out (un-caught) and aborting the async postback.

If you can get this to happen in a development environment, you might want to try error handling the window.onerror event and throwing some alert boxes up. It might help to see where possible errors occur.

hacker
A: 

have you tried:

ScriptManager.GetCurrent(this).RegisterAsyncPostBackControl(yourButton);

DaDa
A: 

DaDa thanks a lot. Your solution solved erratic eventsfor my rad tree. You rock

Prashant