private void Upd_Status_ByCode(HttpContext context) { String jSonString = ""; try { AlbumsBO albumsBO = new AlbumsBO(); string code = Convert.ToString(context.Request.QueryString["Code"]); int status = Convert.ToInt32(context.Request.QueryString["Status"]); int ret = albumsBO.Upd_Status_ByCode(code, status); if (ret == 0) { jSonString = "{\"status\":\"error|" + ret + "\"}"; } if (ret != 0) { jSonString = "{\"status\": \"success\"}"; } } catch (Exception ex) { jSonString = "{\"status\":\"error\" ,\"message\":\"" + ex.Message + "\"}"; } finally { context.Response.Write(jSonString); } }