How can I call the following method from another method on same code behind page?
protected void CustomValidatorDelLN_ServerValidate(object sender, ServerValidateEventArgs args)
{
bool is_valid = txtDeliveryLastName.Text != "";
txtDeliveryLastName.BackColor = is_valid ? System.Drawing.Color.White : System.Drawing.Color.LightPink;
args.IsValid = is_valid;
}
I don’t know how to handle the (object sender, ServerValidateEventArgs args) bit. I call CustomValidatorDelLN_ServerValidate(); What do I put inside the brackets?
Something Like this can work…