protected void OnRowCmd(Object Sender, GridViewCommandEventArgs args)
        {
            RedirectController redirCtrl = new RedirectController();
            switch (args.CommandName) {
                case "del":
                    redirCtrl.RemoveRedirect(Convert.ToInt32(args.CommandArgument));
                    break;
                case "priority_up":
                    redirCtrl.IncreasePriority(Convert.ToInt32(args.CommandArgument));
                    break;
                case "priority_down":
                    redirCtrl.DecreasePriority(Convert.ToInt32(args.CommandArgument));
                    break;
            }

            BindData();
        }
Beispiel #2
0
        protected void OnRowCmd(Object Sender, GridViewCommandEventArgs args)
        {
            RedirectController redirCtrl = new RedirectController();

            switch (args.CommandName)
            {
            case "del":
                redirCtrl.RemoveRedirect(Convert.ToInt32(args.CommandArgument));
                break;

            case "priority_up":
                redirCtrl.IncreasePriority(Convert.ToInt32(args.CommandArgument));
                break;

            case "priority_down":
                redirCtrl.DecreasePriority(Convert.ToInt32(args.CommandArgument));
                break;
            }

            BindData();
        }