Beispiel #1
0
    protected void btnSaveUserDetails_Click(object sender, EventArgs e)
    {
        int retval = objUserBLL.Update_UserDetails(Convert.ToInt32(txtUserID.Text), txtFirstName.Text, "", txtLastName.Text, txtEMail.Text
                                                   , UDFLib.ConvertIntegerToNull(ddlDepartment.SelectedValue), UDFLib.ConvertIntegerToNull(ddlManager.SelectedValue)
                                                   , UDFLib.ConvertDecimalToNull(txtApprovalLimit.Text), txtDesignation.Text, txtMobileNo.Text
                                                   , UDFLib.ConvertDateToNull(txtDateOfBirth.Text), UDFLib.ConvertDateToNull(txtDateOfJoining.Text)
                                                   , UDFLib.ConvertDateToNull(txtDateOfProbation.Text)
                                                   , txtPermanentAddress.Text
                                                   , txtPresentAddress.Text, UDFLib.ConvertStringToNull(ddlUserType.SelectedValue)
                                                   , UDFLib.ConvertIntegerToNull(ddlCompany.SelectedValue), UDFLib.ConvertIntegerToNull(ddlFleet.SelectedValue)
                                                   , null
                                                   , null
                                                   , int.Parse(ddlNationality.SelectedValue));


        BindUserGrid();

        string hidemodal = String.Format("hideModal('divadd')");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "hidemodal", hidemodal, true);
    }