Got you defaultButton working on your form and then find out it is not working on with Firefox. Issue that any multiple line textboxes (textarea) is not receiving linefeeds. You hit ENTER but it does not give you a new line inside the textbox.
Seems there is a problem with WebForm_FireDefaultButton javascript function where it is not Firefox compatible. I found a fix at:
http://developmentnow.com/g/8_2006_8_0_0_812838/Form-DefaultButton-behaves-incorrectly.htmThat describes how to patch that routine by changing the first two lines to make it compatible. I made the changes, placed the funtion in a js file and then added to the bottom of my master page and it all works fine from what I can see.
Here is what I have in my js file I call DfBntFix.js:
var __defaultFired = false;
function WebForm_FireDefaultButton(event, target) {
var element = event.target || event.srcElement;
if (!__defaultFired && event.keyCode == 13 && !(element && (element.tagName.toLowerCase() == "textarea"))) {
var defaultButton;
if (__nonMSDOMBrowser) {
defaultButton = document.getElementById(target);
}
else {
defaultButton = document.all[target];
}
if (defaultButton && typeof(defaultButton.click) != "undefined") {
defaultButton.click();
event.cancelBubble = true;
if (event.stopPropagation) event.stopPropagation();
return false;
}
}
return true;
}
This issue is suppose to be fix in future versions.