Beispiel #1
0
    protected void btnsave_Click(object sender, EventArgs e)
    {
        if (HiddenFlag.Value == "Add")
        {
            int retval = objBLL.InsertSignoffReason(txtsingoffReason.Text, Convert.ToInt32(Session["USERID"]), UDFLib.ConvertToInteger(ddlJoinType.SelectedValue));
        }
        else
        {
            int retval = objBLL.EditSignoffReason(Convert.ToInt32(txtsingoffReasonID.Text.Trim()), txtsingoffReason.Text, Convert.ToInt32(Session["USERID"]), UDFLib.ConvertToInteger(ddlJoinType.SelectedValue));
        }

        BindSignReason();

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

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