protected bool spacehaveTire(int lotId) { int tirecount = Lots.gettirecount(lotId); if (tirecount > 0) { lbldeleteError.Text = "Tire must be transferred to a new or existing Storage Location before this Storage Lot can be Deleted"; lbldeleteError.CssClass = "alert-danger custom-absolute-alert"; lbldeleteError.Visible = true; ScriptManager.RegisterStartupScript(this, GetType(), "fadeOut", "fadeOutLong();", true); return(true); } else { return(false); } }