Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > AJAX Extensions not working

Reply
Thread Tools

AJAX Extensions not working

 
 
Tony Sedgwick
Guest
Posts: n/a
 
      06-12-2007
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


 
Reply With Quote
 
 
 
 
Rob Meade
Guest
Posts: n/a
 
      06-12-2007
"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


 
Reply With Quote
 
 
 
 
Tony Sedgwick
Guest
Posts: n/a
 
      06-12-2007
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" <> wrote in message
news:%...
> "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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Distribute ASP.NET Ajax Extensions with a site? parsifal ASP .Net 2 11-16-2007 12:04 AM
MS Ajax.NET extensions - OnTextChanged to OnKeyPress Grant Merwitz ASP .Net 4 05-23-2007 05:50 PM
AJAX IDE and AJAX TOOL--The Release of JoyiStar AJAX WebShop 3 Beta minnie Java 1 12-13-2006 06:29 AM
C Extensions not working on Windows XP 64 Matt Ruby 3 02-27-2006 04:59 AM
Unable to access extensions menu or add extensions (I've tried past suggestions) nospam@spam.com Firefox 8 12-01-2005 01:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57