protected void btnAddStateInfo_click(object sender, EventArgs e) { productdata = new ProductData(); product = new Product(); product.LocId = 0; product.Country = string.IsNullOrEmpty(txtCountryName.Text.ToString()) ? string.Empty : Convert.ToString(txtCountryName.Text); product.State = string.IsNullOrEmpty(txtstatename.Text.ToString()) ? string.Empty : Convert.ToString(txtstatename.Text); product.District = string.IsNullOrEmpty(txtDistrict.Text.ToString()) ? string.Empty : Convert.ToString(txtDistrict.Text); product.City = string.IsNullOrEmpty(txtCity.Text.ToString()) ? string.Empty : Convert.ToString(txtCity.Text); //Result = bddata.AddBankInfo(users); product.flag = "Insert"; int Result = 0; Result = productdata.AddStateDetails(product); if (Result > 0) { divDanger.Visible = false; divwarning.Visible = false; divSusccess.Visible = true; lblSuccess.Text = "State Information Add Successfully"; ClearTextBox(); GetStateDetails(); 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(); } }