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