Пример #1
0
        protected void DataList1_DeleteCommand(object source, DataListCommandEventArgs e)
        {
            string messageNo = this.DataList1.DataKeys[e.Item.ItemIndex].ToString(); //获取当前DataList控件列

            Bmessage.Delete("messageNo=" + messageNo);
            Page.Response.Redirect("LeaveWordView.aspx?ID=" + Request["ID"].ToString() + "");
        }
Пример #2
0
 protected void dlManage_ItemCommand(object source, DataListCommandEventArgs e)
 {
     Bmessage.Delete("messageNo=" + e.CommandArgument);
 }