Provably I didn't make myself clear,so I will describe exactly what I need to accomplish. On a asp.net page there are 2 buttons(edit and save). I want to validate 2 fields only when the save button is clicked. If edit is clicked, then I don’t want to validate any fields. I thought that using javascript I can identify which button was clicked. If (save button) then validate, else don’t validate. Thank you guys