In the user registration process I want to validate your CPF by JavaScript and return whether it is valid in beckend. And so make a if
with this result to insert it in the database or not.
if (ValidaCpf(txtCpf.Text) == False){
//retorna um erro
}
else{
//cadastra o usuário
}
Note: I already have the function to validate the CPF and the Insert User method in the DB. I just need to pass the validation result from JavaScript to C #.