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