Figure 1 - MicrosotAjax.js
Now, you may not be seeing this particular view if you fire up Firebug and look for yourself. You may see something more like Figure 2:
Figure 2 – MicrosotAjax.debug.js
That’s MUCH better for debugging, isn’t it? What controls this rendering you ask? Simple, it’s the compilation debug setting your web.config:
As I’m sure you aware, compilation debug should be set to
false when you deploy your application, but is typically set to true when developing.
While you can see I’m using AJAX in .NET 3.5 in this example, this feature of the ScriptManager holds true for the ASP.NET AJAX Extensions for ASP.NET 2.0.
Hopefully this gives you a little more insight into the operations of the ScriptManager and ASP.NET AJAX. Not sure if you’ve noticed this feature, but it sure is a nice one!