protected void btnAddBankInfo_click(object sender, EventArgs e) { productdata = new ProductData(); product = new Product(); product.ID = 0; product.BankName = string.IsNullOrEmpty(txtBankName.Text.ToString()) ? string.Empty : Convert.ToString(txtBankName.Text); product.BranchName = string.IsNullOrEmpty(txtbranchname.Text.ToString()) ? string.Empty : Convert.ToString(txtbranchname.Text); product.BranchAddress = string.IsNullOrEmpty(txtBranchAddress.Text.ToString()) ? string.Empty : Convert.ToString(txtBranchAddress.Text); product.IFSCCode = string.IsNullOrEmpty(txtIfsc.Text.ToString()) ? string.Empty : Convert.ToString(txtIfsc.Text); product.flag = "Insert"; int Result = 0; Result = productdata.AddBankInfo(product); if (Result > 0) { divDanger.Visible = false; divwarning.Visible = false; divSusccess.Visible = true; lblSuccess.Text = "Bank Information Add Successfully"; ClearTextBox(); GetBankDetails(); 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(); } }