Example #1
0
    protected void CheckBox2_CheckedChanged(object sender, EventArgs e)
    {
        string isqy = "0";

        if (CheckBox2.Checked)
        {
            isqy = "1";
        }

        //设置自动结算是否启用
        if (ReleaseDAL.UpdJiesuanQy(isqy) == 1)
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('设置成功!');window.location.href=window.location.href;</script>");
        }
        else
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('设置失败!');window.location.href=window.location.href;</script>");
        }
    }