public void GetAlbumImageIds(int albumId) { List <int> result = new List <int>(); result = ClassFunctions.GetAlbumImageIDs(albumId); JavaScriptSerializer js = new JavaScriptSerializer(); Context.Response.Clear(); Context.Response.ContentType = "application/json"; Context.Response.Write(js.Serialize(result)); }