// COPIED FROM AdminItemManagment.aspx.cs // Redirect to appropriate update page protected void gvOrders_SelectedIndexChanged(object sender, EventArgs e) { int orderID = Convert.ToInt32(gvOrders.SelectedRow.Cells[0].Text); BLOrder order = new BLOrder(); Session["Order"] = order.getOrder(orderID); Response.Redirect("~/UL/ViewSingleOrder"); }