public void Sel_ByIDLang(HttpContext context) { String jSonString = ""; ExtendPropertiesBO aExtendPropertiesBO = new ExtendPropertiesBO(); int IDLang = string.IsNullOrEmpty(context.Request.QueryString["IDLang"]) ? CORE_Language.sys_CUR_LANG : int.Parse(context.Request.QueryString["IDLang"]); List<ExtendProperties> obj = new List<ExtendProperties>(); if (string.IsNullOrEmpty(context.Request.QueryString["Disable"])) { obj = aExtendPropertiesBO.Sel_ByIDLang(IDLang); } else { obj = aExtendPropertiesBO.Sel_ByIDLang(IDLang, bool.Parse(context.Request.QueryString["Disable"])); } int count = obj.Count; for (int i = 0; i < obj.Count; i++) { obj[i].Value = HttpUtility.HtmlDecode(obj[i].Value); // obj[i].Contents_Intro = HttpUtility.HtmlDecode(obj[i].Intro); } if (obj != null) { _converter.DateTimeFormat = "dd/MM/yyyy"; jSonString = JsonConvert.SerializeObject(obj, _converter); } jSonString = "{\"data\":" + jSonString + "}"; context.Response.Write(jSonString); }