When using ASP.NET AJAX on AxCMS page all postbacks after asynchronous postback result in "Page not found" error or "PageRequestManagerServerErrorException"
When ASP.NET AJAX does asynchronous postback, it also rewrites form action to the one it receives as postback response from server.
As result, the action becomes “<page>.aspx”, while before it was “publish/<page>.aspx”.
1) Insert this code to your page template after <asp:ScriptManager> tag:
actionUrl = document.forms.action;
function restoreFormAction(sender, args)
document.forms.action = actionUrl;
document.forms._initialAction = actionUrl;
2) Always check your page's Page_Load method wheather your request URL contains "/publish/" or not. If it does not, then do a postback and make sure that it contains it.
(That means: Request to .../YourAjaxPage.YOUREXTENSION must be automatically redirected to .../Publish/YourAjaxPage.aspx ).
AxCMS.net versions: before 9.0