In some cities and states, asking the candidate about their salary history is illegible. Do your research before inquiring. In any case, the candidate is not obligated to answer this question.