protected void LinkButton6_Click(object sender, EventArgs e) { try { if (LinkButton6.Text == "[Click here] Save and Continue.") { ClassDataManager c = new ClassDataManager(); c.AddDrugs_OILLNESS(double.Parse(Label9z.Text), double.Parse(lblAdminID.Text), double.Parse(Label6z.Text)); LinkButton6.Visible = false; } if (LinkButton6.Text != "[Click here] Save and Continue.") { LinkButton6.Visible = false; } } catch (Exception) { throw; } }