Click here to Skip to main content
15,889,631 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I would like to display data in the webpage without refreshing the whole webpage.

When I click one of the red button, the refreshed data from the database shall be displayed without updating the whole webpage.

I don't know how to do it.

Today, I'm using SQL server 2012 and VS 2012 with entity framework and ASP.net MVC.
Posted

1 solution

Simply use ajax, like described here: https://cmatskas.com/update-an-mvc-partial-view-with-ajax/[^]. Of course, you can use jquery and an ajax backedn in a controller to have even deeper control over what you retrieved and how it is displayed. It depends on your needs.
 
Share this answer
 
Comments
King Fisher 27-Dec-14 17:17pm    
5+
Zoltán Zörgő 28-Dec-14 1:20am    
Thank you
Sergey Alexandrovich Kryukov 28-Dec-14 0:18am    
Agree, a 5.
—SA
Zoltán Zörgő 28-Dec-14 1:20am    
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900