protected void btnsave_Click(object sender, EventArgs e)
    {
        if (HiddenFlag.Value == "Add")
        {
            int retval = objBLL.InsertStaffRemarkCategory(txtcategory.Text, Convert.ToInt32(Session["USERID"]));
        }
        else
        {
            int retval = objBLL.EditStaffRemarkCategory(Convert.ToInt32(txtcategoryID.Text.Trim()), txtcategory.Text, Convert.ToInt32(Session["USERID"]));
        }

        BindRemarkCategory();

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

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