Skip to content
Advertisement

paging and search with ajax and partial view in asp.net core

I’m using .net core 6 and I have a table that has pagination and if the table page changes, it refreshes the page I want to change the table page without refresh using partialview and Ajax

controller:

JavaScript

userService:

JavaScript

View:

JavaScript

Can you tell me how to do this?

Thankyou

Advertisement

Answer

Could you show your codes about partialview ?

the script could like below:

JavaScript

Controller:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement