I have made an edit profile page in asp.net.
It has 2 parts - change password and change email address.
both have submit buttons and validator controls to check whether the fields have been left blank.
The problem is - on pressing enter which changing password, the validators of email gets displayed (password field cannot be left empty). However, if i try changing the password using mouse (click on the submit button) then it works fine.
Changing email works with enter as well as mouse click (the change password validators dont get trigerred)
Please help me and tell me what i'm doing wrong here