示例#1
0
        private void DoTrack(string data, string trackPath, bool writeJs)
        {
            string[]  objCmpDat = data.Split('-');
            int       idx       = 0;
            TrackUnit unit      = null;

            foreach (string d in objCmpDat)
            {
                idx = d.IndexOf('!');
                if (idx > 0)
                {
                    unit = new TrackUnit(d.Substring(0, idx), d.Substring(idx + 1));
                    if (unit.IsUpdatable() == true)
                    {
                        unit.SetRecord(trackPath);
                        if (GetSiteEnableAutoUpdate() == true)
                        {
                            PageGenerator.GeneratorByPath(trackPath);
                            //if (writeJs == true)
                            //{
                            //    Response.Write("location.href = location.href;");
                            //}
                        }
                        break;
                    }
                }
            }

            if (writeJs == true)
            {
                //Response.Write("alert('" + trackPath + "');");
            }
        }
示例#2
0
文件: TrackPage.cs 项目: vbyte/fmq
        private void DoTrack(string data, string trackPath, bool writeJs)
        {
            string[] objCmpDat = data.Split('-');
            int idx = 0;
            TrackUnit unit = null;
            foreach (string d in objCmpDat)
            {
                idx = d.IndexOf('!');
                if (idx > 0)
                {
                    unit = new TrackUnit(d.Substring(0, idx), d.Substring(idx + 1));
                    if (unit.IsUpdatable() == true)
                    {
                        unit.SetRecord(trackPath);
                        if (GetSiteEnableAutoUpdate() == true)
                        {
                            PageGenerator.GeneratorByPath(trackPath);
                            //if (writeJs == true)
                            //{
                            //    Response.Write("location.href = location.href;");
                            //}
                        }
                        break;
                    }
                }
            }

            if (writeJs == true)
            {
                //Response.Write("alert('" + trackPath + "');");
            }
        }