3 Replies - 12294 Views - Last Post: 20 August 2009 - 07:07 AM Rate Topic: ***** 1 Votes

#25 smcherniss  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 7
  • View blog
  • Posts: 8
  • Joined: 25-June 08

Re: AJAX UpdatePanel Full Page PostBack Problem

Post icon  Posted 19 February 2009 - 04:16 PM

Im currently converting a C# Web Project from 2003 to 2005 AJAX Enabled. To utilize the AJAX platform I had to modify the web.config file.

Everything was working fine for collapsible panels and calendar extender. However when I went to use the UpdatePanel AJAX control it was causing a full postback and not a partial postback.

After hours of troubleshooting I finally determined the problem was with my web.config file. Because I was converting an existing 2003 project I was using the following tag


<xhtmlConformance mode="Legacy"/>




Once I removed this tag from within the <system.web> section of the web.config file, everything worked as expected.

So if you are experiencing problems with your AJAX controls, be sure to inspect your web.config file to ensure it is not a problem.

If you would like to know what should be in the web.config file for an AJAX enabled web site, create a new project Web Application AJAX Enabled. Inspect the web.config file and it will contain the information you need.

Skip
Was This Post Helpful? 2

#26 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: AJAX UpdatePanel Full Page PostBack Problem

Posted 19 February 2009 - 08:51 PM

That is great information. Thank you for sharing.
Was This Post Helpful? 0
  • +
  • -

#27 aaronizag  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 20-August 09

Re: AJAX UpdatePanel Full Page PostBack Problem

Posted 20 August 2009 - 06:35 AM

Thank you very very very much! After trawling through many posts/forums I have found the cause of my Update panel not working.

Thanks for sharing!
Was This Post Helpful? 0
  • +
  • -

#28 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6062
  • View blog
  • Posts: 23,513
  • Joined: 23-August 08

Re: AJAX UpdatePanel Full Page PostBack Problem

Posted 20 August 2009 - 07:07 AM

This might be better suited to ASP.NET, so I'll push it over there.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1