Hello everyone!
I have the followong problem and I would aprecciate any kind of help or suggestion on how to solve it!
I have a page with 3 dropdownlists along with one button, and a textbox along with another button. There are to possible actions in this page, select something from the textboxes and submit, or write something in the textbox and submit!
If the user chooses the DropDown action, The selected indexes of the Drop Downs cannot be zero, so I associated requiredFieldValidators with each DropDow, created a validation group, associated eachj drop down with it, along with the button of the drop downs an the requiredFieldValidators of the dropdowns. If the user chooses the textbox action, the text in the text box cannot be null, so I associated the text box with another required field validator, created another validation group, associated the text box, the text box button and the text box required field validator with it.
Everything went sweet when I click any of the buttons! However, when I enter text in the textbox and press the "Enter" key, the page posts back and executes the drop down validation!! Weird, no? Anyone has any idea why this happens, or how to execute the action that I want when the users presses enter(wich is the text box action)?
Thanks in advance!!