Guest User

Untitled

a guest
Oct 2nd, 2019
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @model SimpleGallery.Helpers.PagedData<ImageModel>
  2.  
  3. <script type="text/javascript">
  4.     $().ready(function () {
  5.         $(".page-number").on("click", function () {
  6.             var page = parseInt($(this).html());
  7.  
  8.             $.ajax({
  9.                 url: '@Url.Action("ImageList")',
  10.                 data: { "page": page },
  11.                 success: function (data) {
  12.                     $("#image-list").html(data);
  13.                 }
  14.             });
  15.         });
  16.     });
  17. </script>
  18.  
  19. <div id="image-list">
  20.     @await Html.PartialAsync("ImageList")
  21. </div>
RAW Paste Data