Exemple #1
0
    void update()
    {
        string parentid     = ddlParent.SelectedValue;
        string functionname = txtFunctionName.Text;
        string url          = txtUrl.Text;
        string index        = txtIndex.Text.Trim();
        string isDisplay    = "";

        if (chkDisplay.Checked == true)
        {
            isDisplay = "1";
        }
        else
        {
            isDisplay = "0";
        }

        bool a = objFunction.Update(Request.QueryString["id"].ToString(), parentid, functionname, url, isDisplay, index, Session["username"].ToString());

        if (a == true)
        {
            divMessage.InnerHtml = O2S_Message.Success("Thành công", "Cập nhật thành công.");
        }
    }