예제 #1
0
    protected void btnOK_Click(object sender, EventArgs e)
    {
        DAL.Tables.T_Sensitivekeywords t_Sensitivekeywords = new DAL.Tables.T_Sensitivekeywords();

        t_Sensitivekeywords.KeyWords.Value = tbContent.Value.Replace(",", ",");

        if (Shove._Convert.StrToShort(hidID.Value, 0) > 1)
        {
            t_Sensitivekeywords.Update("1=1");
        }
        else
        {
            t_Sensitivekeywords.Insert();
        }

        Shove._Web.JavaScript.Alert(this.Page, "保存成功。");
    }
예제 #2
0
    private void BindData()
    {
        DataTable dt = new DAL.Tables.T_Sensitivekeywords().Open("", "", "");

        if (dt == null)
        {
            return;
        }

        if (dt.Rows.Count < 1)
        {
            return;
        }

        tbContent.Value = dt.Rows[0]["KeyWords"].ToString();
        hidID.Value     = dt.Rows[0]["ID"].ToString();
    }