Exemple #1
0
        protected void GridView2_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "ButtonDelete")
            {
                int crow;
                crow = Convert.ToInt32(e.CommandArgument.ToString());
                string id = GridView2.Rows[crow].Cells[1].Text;

                bll.DeleteLine(orderLines, id);
                loadOrders();
                ClientScript.RegisterStartupScript(this.GetType(), "key", "showModaOrders()", true);
            }
        }