I have a page that contains a form and i have addred required field validators to some of the fileds. In addtion when the page is submitted (user clicks the submit button) I wanted a comfirmation window to come so, in the Page_Load method I have ,
this.btnSmt.Attributes.Add("onclick", "return confirm(\"Comfirm that you want the record to be Created\",\"Yes\",\"No\");"); //attaching dialog window
Now the problem is the client side validation (required field validator) will not work after adding this feature. But if I comment out the above line of code, the validation works.
The issue seems like the page is submitted without being validated.
any idea pleas