예제 #1
0
 protected void Row_Command(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "DeleteMsg")
     {
         int msgid = Convert.ToInt32(e.CommandArgument);
         msgBll.DelByID(msgid, buser.GetLogin().UserID);
         DataBind();
     }
     if (e.CommandName == "ReadMsg")
     {
         Response.Redirect("MessageRead.aspx?read=1&id=" + e.CommandArgument.ToString());
     }
 }