AJAX Extensions not working

T

Tony Sedgwick

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&amp;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
 
R

Rob Meade

...
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
 
T

Tony Sedgwick

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top