mishrsud / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

Javascript error encountered when using nested update panels in the MS Ajax framework. #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Implementing the change i made to include the MS Ajax EndRequest to display 
results I encountered a strange issue when making use of nested update 
panels(Scary though I know!) and conditional updates. The response does not 
seem to get passed correctly in the args and it would cause a JS error. I am 
semi-convinced there is a bug somewhere in that framework but I could not work 
it out.

My fix to this can be found here. The fix ensures that the response is 
available and the http request object is not null.
https://code.google.com/r/mhbuck-mvc-mini-profiler/source/detail?r=736ed6b9bbbef
99928e3ce8a9d4cb0dd3222c9a6

Unfortunatly I needed to check the "_xmlHttpRequest" property directly as there 
is no method to retrieve that value in the MS Ajax framework.

Original issue reported on code.google.com by MHB...@gmail.com on 22 Jul 2011 at 12:32

GoogleCodeExporter commented 8 years ago
Thanks ... added it ... also exposed fetchresults (fetchResultsExposed) so you 
can tweak it further without needing a new build. 

Original comment by sam.saff...@gmail.com on 26 Aug 2011 at 2:53