Exemplo n.º 1
0
        protected void Egv_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            string id = e.CommandArgument.ToString();

            if (e.CommandName == "Edit")
            {
                Page.Response.Redirect("../Flex/AddChart.aspx?ChartID=" + id);
            }
            if (e.CommandName == "Del")
            {
                if (B_ADZone.Chart_Remove(id))
                {
                    function.WriteSuccessMsg("删除成功!");
                }
                DataBind();
            }
            if (e.CommandName == "ifframe")
            {
                Page.Response.Redirect("ShowChartCode.aspx?ChartID=" + id);
            }
        }