예제 #1
0
    protected void Add()
    {
        SYS_WidgetBSO sys_WidgetBSO = new SYS_WidgetBSO();
        SYS_Widget    sys_Widget    = ReceiveHtml();

        try
        {
            int id = sys_WidgetBSO.CreateSYS_WidgetGet(sys_Widget);
            error.Text = "<div style='color:#ff0000;font:bold 12px Arial;padding:5px 0;'>Thêm mới thành công !</div>";
            initControl(id);
        }
        catch (Exception ex)
        {
            error.Text = ex.Message.ToString();
        }
    }
예제 #2
0
    protected void btn_add_Click_more(object sender, EventArgs e)
    {
        SYS_WidgetBSO sys_WidgetBSO = new SYS_WidgetBSO();
        SYS_Widget    sys_Widget    = ReceiveHtml();

        try
        {
            int id = sys_WidgetBSO.CreateSYS_WidgetGet(sys_Widget);
            error.Text = "<div style='color:#ff0000;font:bold 12px Arial;padding:5px 0;'>Thêm mới thành công !</div>";
            AspNetCache.Reset();
            ViewWidgetAll();
        }
        catch (Exception ex)
        {
            error.Text = ex.Message.ToString();
        }
    }