void VendorCheck() { objService = new ServeAtDoorstepService(); DataTable dt = objService.AvailableVendor(txtLoginname.Value.ToString().Trim()); if (dt.Rows.Count == 0 && txtLoginname.Value.ToString().Trim() != "") { intVendorAvail = 0; //checkUser.Visible = true; //imgAvailable.Visible = true; //imgNotAvailable.Visible = false; } else { intVendorAvail = 1; //imgAvailable.Visible = false; //imgNotAvailable.Visible = true; } }