I'm having problems with jquery mobile webpage made using asp.net. Links on pages that are not the first page visited do not work, because they are loaded using ajax - and the "action" of the form tag is not updated.
I set data-ajax = "false" in the form tag.
I am updating the action attribute on the form using JS, but this is not accepted by asp.net in postbacks: "Failed to validate viewstate MAC address". A made a workaround for this error by setting this in web.config: pages enableViewStateMac = "false" enableEventValidation = "false" Now I can send back to the correct page without errors.
BUT, the page I'm sending the message to won't catch the postback. I see that form data is being submitted, but the method in the code does not start. It works fine if the page is not loaded ajax.
source
share