protected void btnAddDesig_click(object sender, EventArgs e) { productdata = new ProductData(); product = new Product(); product.DesigId = 0; product.DesigName = string.IsNullOrEmpty(txtDesigName.Text.ToString()) ? string.Empty : Convert.ToString(txtDesigName.Text); product.Descriptions = string.IsNullOrEmpty(txtDescription.Text.ToString()) ? string.Empty : Convert.ToString(txtDescription.Text); product.Responsibility = string.IsNullOrEmpty(txtResp.Text.ToString()) ? string.Empty : Convert.ToString(txtResp.Text); product.flag = "Insert"; int Result = 0; Result = productdata.AddDesigDetails(product); if (Result > 0) { divDanger.Visible = false; divwarning.Visible = false; divSusccess.Visible = true; lblSuccess.Text = "Designation Information Add Successfully"; ClearTextBox(); GetDesigDetails(); pnlError.Update(); upMain.Update(); uprouteList.Update(); } else { divDanger.Visible = false; divwarning.Visible = true; divSusccess.Visible = false; lblwarning.Text = "Please Contact to Site Admin"; pnlError.Update(); } }