protected void grvCateNews_RowCommand(object sender, GridViewCommandEventArgs e) { int Id = Convert.ToInt32(e.CommandArgument.ToString()); string nName = e.CommandName.ToLower(); switch (nName) { case "rules": Response.Redirect("~/Admin/editcatenewsroles/" + Id + "/Default.aspx"); break; case "_edit": Response.Redirect("~/Admin/editcatenews/" + hddGroup.Value + "/" + Id + "/Default.aspx"); break; case "_move": Response.Redirect("~/Admin/editcatenewsmove/" + hddGroup.Value + "/" + Id + "/Default.aspx"); break; case "_delete": CateNewsBSO catenewsBSO = new CateNewsBSO(); catenewsBSO.DeleteCateNewsAll(Id, Language.language); ViewCateGroup(Convert.ToInt32(hddGroup.Value)); AspNetCache.Reset(); break; } }