protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "DeleteMsg")
     {
         int MsgID = DataConverter.CLng(e.CommandArgument.ToString());
         bll.RealDelByIDS(MsgID.ToString(), buser.GetLogin().UserID);
         DataBind();
     }
     else if (e.CommandName == "ReadMsg")
     {
         Response.Redirect("MessageRead.aspx?id=" + e.CommandArgument.ToString());
     }
 }
 protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "DeleteMsg")
     {
         bll.RealDelByIDS(e.CommandArgument.ToString(), buser.GetLogin().UserID);
         DataBind();
     }
     if (e.CommandName == "ReadMsg")
     {
         Response.Redirect("MessageRead.aspx?id=" + e.CommandArgument.ToString());
     }
     if (e.CommandName == "EditeMsg")
     {
         Response.Redirect("MessageSend.aspx?Drafid=" + e.CommandArgument.ToString());
     }
 }
Esempio n. 3
0
 public int Message_RealDel(string ids)
 {
     //msgBll.ReCoverByIDS
     msgBll.RealDelByIDS(ids, mu.UserID);
     return(Success);
 }