I have installed the AJAX extensions and partial page rendering works ok
from a new ajax enabled web site I created in VS. The problem is that I've
manually entered the necessary entries into the web.config into an existing
project and the same asp.net file doesn't work from the migrated web.config
project.
When I compared the html source between 2 identical asp.net files the
differences was that the 2 script sections below were missing:
<script
src="/WebResource.axd?d=Htewp0TRJI3R2gJ_WhDDtA2&t=632966009958750000"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1',
document.getElementById('form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel1'],
[], [], 90);
//]]>
</script>
Can someone explain what web.config setting controls this output into the
html?
Thanks,
Tony
Rob Meade - 12 Jun 2007 13:38 GMT
> Can someone explain what web.config setting controls this output into the
> html?
Hi Tony,
On the app that you are trying to convert, have you placed a "ScriptManager"
control on the page?
I believe it to be that which generates the scripts you see in the source
etc...
Regards
Rob
Tony Sedgwick - 12 Jun 2007 15:37 GMT
Have now fixed the problem.
I had
<xhtmlConformance mode="Legacy"/>
in the web.config, this stops the AJAX extensions including the javascript
files needed for AJAX. The bad thing is that you don't see any error
messages when constructing your page but it just doesn't work as expected.
Tony
>> Can someone explain what web.config setting controls this output into the
>> html?
[quoted text clipped - 10 lines]
>
> Rob