By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,421 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

AJAX Extensions not working

P: n/a
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=63 2966009958750000"
type="text/javascript"></script>

<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('Scrip tManager1',
document.getElementById('form1'));
Sys.WebForms.PageRequestManager.getInstance()._upd ateControls(['tUpdatePanel1'],
[], [], 90);
//]]>
</script>

Can someone explain what web.config setting controls this output into the
html?

Thanks,
Tony
Jun 12 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Tony Sedgwick" wrote ...
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
Jun 12 '07 #2

P: n/a
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
"Rob Meade" <ku***************@edaem.borwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
"Tony Sedgwick" wrote ...
>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


Jun 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.