Beispiel #1
0
        public void ActionIndex(FormTextModel model)
        {
            if (!CPViewPage.IsPostBack && !string.IsNullOrEmpty(model.TextID))
            {
                model.Value = Global.Data.Base64Decode(Global.Session.GetValue(model.TextID).ToString().Replace(" ", "+"));
            }

            ViewBag.Model = model;
        }
Beispiel #2
0
        public void ActionApply(FormTextModel model)
        {
            if (string.IsNullOrEmpty(model.Value))
            {
                CPViewPage.Alert("Nhập nội dung");
                return;
            }

            string s = Global.Data.Base64Encode(model.Value);

            VSW.Lib.Global.Session.SetValue(model.TextID, s);

            CPViewPage.Script("Close", "Close('" + s + "')");
        }