I don't use ASP.Net at all, but maybe this is relevant..? If I'm understanding the scenario, you could ignore the jQuery parts of that example, keep the autoSubmit() function that he's made, and use that instead of form.submit() in your code.

Ignore me if I'm way-off though.