protected void btnSubmit_Click(object sender, EventArgs e) { try { objAdmin.ConnectionName = txtConnectionName.Text; objAdmin.Description = txtDescription.Text; objAdmin.RefillCharge = Convert.ToDecimal(txtRefill.Text); objAdmin.NewConnectionCharge = Convert.ToDecimal(txtNewPrice.Text); string s = objAdmin.AddInsertConnection(); lblMsg.Text = s; } catch (Exception ex) { lblMsg.Text = ex.Message.ToString(); } }