G
Guest
This is quite serious - for a beginner...
No property setting for a default button? I just want a button on a search
page to automatically be pressed when I hit the return/enter key.
Somehow I did it with one of my 2 buttons, (but I don't know how)
one of the buttons (cmdClear) decided on its own to be the default button -
instead of the cmdSearchMember button - so much so that even after searching
and finding 2 other solutions:
1) 'RegisterHiddenField("__EVENTTARGET", "cmdSearchMember")
2) Javascript -that ends up with:
SetDefaultButton(Me.txtNAME_ID, cmdSearchMember) in the load event of
the form.
.... the other button (cmdClear) continues to be selected and is
automatically pushed when I hit the enter (return) key.
Please help, I know the solution isn't to grab my code from the
cmdSearchMember button and add it to the cmdClear button - although that is
becoming quite tempting.
No property setting for a default button? I just want a button on a search
page to automatically be pressed when I hit the return/enter key.
Somehow I did it with one of my 2 buttons, (but I don't know how)
one of the buttons (cmdClear) decided on its own to be the default button -
instead of the cmdSearchMember button - so much so that even after searching
and finding 2 other solutions:
1) 'RegisterHiddenField("__EVENTTARGET", "cmdSearchMember")
2) Javascript -that ends up with:
SetDefaultButton(Me.txtNAME_ID, cmdSearchMember) in the load event of
the form.
.... the other button (cmdClear) continues to be selected and is
automatically pushed when I hit the enter (return) key.
Please help, I know the solution isn't to grab my code from the
cmdSearchMember button and add it to the cmdClear button - although that is
becoming quite tempting.