JQuery Mobile ajaxEnabled + asp.net form postbackurl = problems

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.

+5
source share
2 answers

try looking at jQuerys.live () function. http://api.jquery.com/live/

0
source

Try to place the form tags (open and close) immediately before and immediately after the contents of the div ... then you can use data-ajax = true and have a fantastic animation ...

0
source

All Articles