protected void btn_Order_Click(object sender, EventArgs e) { foreach (GridViewRow row in grvCateNews.Rows) { TextBox textOrder = (TextBox)row.FindControl("txtCateNewsOrder"); int cOrder = Convert.ToInt32(textOrder.Text); int cateID = Convert.ToInt32(row.Cells[0].Text); CateNewsBSO catenewsBSO = new CateNewsBSO(); catenewsBSO.CateNewsUpOrder(cateID, cOrder); } ViewCateGroup(Convert.ToInt32(hddGroup.Value)); error.Text = "<div class='alert alert-sm alert-danger bg-gradient'>Cập nhật thành công !</div>"; AspNetCache.Reset(); }