Ejemplo n.º 1
0
    protected override void CurrentContent_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        switch (e.CommandName)
        {
        case "Create":
            Redirect("../../ServiceLayer/HashType/HashEdit.aspx?HashTypeID=" + HashTypeID.ToString());
            break;

        case "Remove":

            objHashRule.DeleteHash(e.CommandArgument.ToString());
            RenderPage();

            break;

        case "Modify":

            Redirect("../../ServiceLayer/HashType/HashEdit.aspx?HashTypeID=" + HashTypeID.ToString() + "&HashID=" + e.CommandArgument);

            break;

        case "Back":
            Redirect("../../ServiceLayer/HashType/HashTypeList.aspx");
            break;
        }
    }
Ejemplo n.º 2
0
    protected override void CurrentTool_ItemCommand(object sender, WTF.Controls.MyCommandEventArgs e)
    {
        switch (e.CommandName)
        {
        case "Create":

            Redirect("../../ServiceLayer/HashType/HashEdit.aspx?HashTypeID=" + HashTypeID.ToString());
            break;

        case "Remove":

            objHashRule.DeleteHash(gdvContent.SelectedRowDataKeys);
            RenderPage();

            break;

        case "Modify":

            Redirect("../../ServiceLayer/HashType/HashEdit.aspx?HashTypeID=" + HashTypeID.ToString() + "&HashID=" + gdvContent.SelectedRowFirstKey);

            break;

        case "Back":
            Redirect("../../ServiceLayer/HashType/HashTypeList.aspx");
            break;
        }
    }