public string FirstCellValue(string datatype, string datafile, string selectFilter, string ctrl) { JavaScriptSerializer js = new JavaScriptSerializer(); string crlHash = Generic.GetHash(Generic.GetWebConfigValue("WebServiceKey")); MonData mon = new MonData() { Data = "0" }; if (ctrl != crlHash || datatype == string.Empty) return js.Serialize(mon); try { LoadData ld = new LoadData { // Decoder select filter so that it can be read DefaultFilter = HttpUtility.UrlDecode(selectFilter) }; // Decoder datafile information ld.SetDataType(datatype, HttpUtility.UrlDecode(datafile)); measure_type fcv = new first_cell_value(); fcv.LoadData = ld; // just get data from file fcv.BuildMeasure(); // apply measurement mon.Data = fcv.MeasureValue.ToString(CultureInfo.InvariantCulture); } catch (Exception ex) { loging.Error("BackOffice User Webservice", "List All Pages ", ex.Message, _logRecord); } return js.Serialize(mon); }