示例#1
0
    //数据库事件
    protected void GridViewChat_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string cmdName = e.CommandName.ToString();

        if (cmdName == "cmdDelete")
        {
            if (cmdName != null)
            {
                if (e.CommandArgument != null)
                {
                    bool   b          = ChatManager.DeleteChatById(e.CommandArgument.ToString());
                    string operatorId = this.ddlOperator.SelectedValue;
                    DataBindChat(operatorId, this.txtBeginDate.Text, this.txtEndDate.Text);
                }
            }
        }
    }