protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "deletes") { admin.Del(e.CommandArgument.ToString()); GridView1.DataSource = admin.messageSel(); GridView1.DataBind(); } }