private void ValidationID2(object sender, CancelEventArgs e) { if (string.IsNullOrWhiteSpace(ID2Input.Text)) { e.Cancel = true; WebTargetInput.Focus(); errorMsgID2.SetError(ID2Input, "Parameter should not be left blank!"); } else { e.Cancel = false; errorMsgID2.SetError(ID2Input, ""); } }
private void ValidationLooping(object sender, CancelEventArgs e) { if (string.IsNullOrWhiteSpace(LoopingInput.Text)) { e.Cancel = true; WebTargetInput.Focus(); errorLooping.SetError(LoopingInput, "Looping should not be left blank!"); } else { e.Cancel = false; errorLooping.SetError(LoopingInput, ""); } }
private void ValidationWebTargetInput(object sender, CancelEventArgs e) { if (string.IsNullOrWhiteSpace(WebTargetInput.Text)) { e.Cancel = true; WebTargetInput.Focus(); errorProvider1.SetError(WebTargetInput, "Web target should not be left blank!"); } else { e.Cancel = false; errorProvider1.SetError(WebTargetInput, ""); } }