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 + "');"); } }