I am using a gridview that uses image pagenation. This seems to perform a double postback each time I click on the image to go to the next page (the first of which causes a SocketException), so to prevent that from occuring I used:
$('#GridUpdatePanel').delegate(':input[type=image]', 'submit', function () {
return false;
});
This seems to work with IE, making it so only the second (errorless) postback is performed. However, Firefox and Chrome don't seem to even fire this function, meaning they still perform the double postback.
Any ideas? I am currently using jquery 1.6.3
Note that my Gridview is inside an Updatepanel, which is why I have had to use a delegate.