Exemplo n.º 1
0
        protected override void btnSave_Click(object sender, EventArgs e)
        {
            NewsService ns = NewsService.GetInstance();

            string[] c_vals = hidCatalog.Value.Replace(",,", ",").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

            try
            {
                int r = ns.CopyTo(id.Split(','), c_vals);

                ScriptUtil.RefreshFrame("MainFrame");
                ScriptUtil.AlertAndCloseDialog("复制操作成功!");
            }
            catch (Exception ex)
            {
                ScriptUtil.Alert("服务器发生未知错误!");

                Logger.Error(ex.Message);
            }
        }