private void GetClientAddress() { try { string CLientSAID = Session["SAID"].ToString(); DataSet ds = addressBL.GetPrimaryAddrClient(CLientSAID); ViewState["ClientAddress"] = ds; if (ds.Tables.Count > 0) { chkClientAddress.Visible = true; } else { chkClientAddress.Visible = false; } } catch { lblTitle.Text = "Warning!"; lblTitle.ForeColor = System.Drawing.Color.Red; message.ForeColor = System.Drawing.Color.Red; message.Text = "Sorry, Something went wrong, please contact administrator"; ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "openModal();", true); } }