Example #1
0
    protected void SaveData()
    {
        int res = 1;

        try
        {
            CPID = UDFLib.ConvertToInteger(Session["CPID"]);
            if (CPID != 0)
            {
                res = objCP.INS_Remarks(CPID, UDFLib.ConvertIntegerToNull(ddlUser.SelectedValue),
                                        txtRemarks.Text, GetSessionUserID());
                ClearData();
                if (res == 1)
                {
                    ltmessage.Text = "Remark added successfully.";
                }
            }
        }
        catch { }
    }