private void BindData() { IPointService service = ServicesFactory.CreatePointService(); string data = Newtonsoft.Json.JsonConvert.SerializeObject(service.GetListOfPoints(_ageFilters, _genderFilters)); string myScriptValue = "markers=" + data; ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "myScriptName", myScriptValue, true); }