Esempio n. 1
0
    protected override void CurrentContent_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        switch (e.CommandName)
        {
        case "Create":
            Redirect("../../ServiceLayer/DataTemplate/DataTemplateEdit.aspx?DataTemplateTypeID=" + DataTemplateTypeID.ToString());
            break;

        case "Remove":

            objDataTemplateRule.DeleteDataTemplate(e.CommandArgument.ToString());
            RenderPage();

            break;

        case "Modify":

            Redirect("../../ServiceLayer/DataTemplate/DataTemplateEdit.aspx?DataTemplateTypeID=" + DataTemplateTypeID.ToString() + "&DataTemplateID=" + e.CommandArgument);

            break;

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

            Redirect("../../ServiceLayer/DataTemplate/DataTemplateEdit.aspx?DataTemplateTypeID=" + DataTemplateTypeID.ToString());
            break;

        case "Remove":


            objDataTemplateRule.DeleteDataTemplate(gdvContent.SelectedRowDataKeys);
            RenderPage();

            break;

        case "Modify":

            Response.Redirect("../../ServiceLayer/DataTemplate/DataTemplateEdit.aspx?DataTemplateTypeID=" + DataTemplateTypeID.ToString() + "&DataTemplateID=" + gdvContent.SelectedRowFirstKey);

            break;

        case "Back":
            Redirect("../../ServiceLayer/DataTemplate/DataTemplateTypeList.aspx");
            break;
        }
    }