Monday, June 14, 2010

AJAX causes full postback in windows XP IIS - and aslo "FIX" for RadioButtonlist autopostback "BUG"


Today, "suddenly" I noticed that Ajax causes full postback in my pages in windows XP running via IIS virtual directory. But no problem if I run it via VS2010's built-in web development server. Something may have changed in the HTML header/footer which caused Ajax to go nuts. But why only via XP's IIS, I don't know, WEIRD.

However, this solution solved the problem

http://www.latifozturk.com/post/ASPNet-AJAX-Not-Working-(Full-page-postback).aspx

I added in web.config system.web section, and voila, Ajax is back to normal again


Upon solving this problem, I found that it also solves the AUTOPOSTBACK=TRUE ajax "bug" which causes full postback for RadioButtonList and checkboxlist etc....