Monday, March 26, 2012

UpdatePanel - works on one page, but not on another

I've implemented the MS Ajax UpdatePanel on one page in a site to to load a combo based on the selection of another combo without a postback.

It worked perfectly on my development machine, but failed without any javascript error or exception on the server. I suspected the config was a problem and made sure that all the options in my development config were transferred to the server--specifically, the Assembly binding and HTTPHandler settings. I downloaded and installed the Ajax Extensions MSI package on the web server, which is 2003.

A test page with just an update panel, a button, and a label works without postbacks when uploaded to the same web application, so it looks to me like the config is set up properly. The page that it doesn't work on inherits from a master page, and has the update panel in a usercontrol... When I save the page in IE, I can see that the Ajax scripts are being loaded in the scriptmanager resources.

What steps would I take next to figure out the problem?

It sounds very strange that asp:Update can work in one?web page,but not in another web page.Try to test your Ajax website in development machine through IIS and check if it works.There is no doubt that Ajax can work with master page/content page.Try to check the permissions in IIS which may affect the execution results.Do you create a web?application?when?you?create?a?new?
virtual?directory??Do?you?set?Executable?Permissions?for?"Scripts only"?or?"Scripts and Executable"??Try?to?add?"Network Service"?to?the?virtual?directory?in?IIS?through?right?mouse?clicking?on?the?virtual?directory.
If you still have any questions about this,try to post some codes here which will help us to fix the problem.
Wish this can help you.

No comments:

Post a Comment