protected void btnAddMinistry_Click(object sender, EventArgs e) { int i = 0; objComMinistry.ministryEnglishName = txtMinistryEnglishName.Text; objComMinistry.ministryNepaliName = txtMinistryNepaliName.Text; objComMinistry.ministryCode = txtCode.Text; objWebService.AuthSoapHdValue = ServiceAuth.ServiceAuthentication(); i = objWebService.AddMinistry(objComMinistry, ministryId); if (i > 0) { Response.Write("<script>alert('Ministry added successfully!')</script>"); Response.Redirect(Constants.ConstantAppPath + "/Modules/DirectoryManagement/MinistryList.aspx"); } else { Response.Write("<script>alert('Ministry addition failed!')</script>"); } }