Every attempt I had at making a button default failed, until someone on here posted some javascript that checks the textbox for the enter key and hits the button.
I tried putting my controls into a form and setting the default button, and some other stuff, but nothign worked except that javascript.
The problem I have now is that I am using an ajax extender that autocompletes the textbox (drops down a list of values as you start typing). People use it by typing in half of something, then hitting the down arrow until the one they want is highlighted, and pressing enter.
The enter press though doesn't select the item because of my javascript to make it press the default button. I am not sure how to get around this.
The annoying thing is that one of my pages, the search button somehow became the default button without me doing anything, so that page works fine. My other page, the button isnt default and I cannot figure out why not!