Last post Aug 20, 2016 01:34 PM by evilrid
Aug 17, 2016 11:28 AM|evilrid|LINK
I have a default web application project, with couple items listed:
when i pick one to vote, say the thrid one and get the view:
and what im trying to do now is when you click on the +1 red button up there, and get a +1 value on the page under Votes. How can i achieve this and what is a good practise for this?
Aug 18, 2016 09:19 AM|Ailleen|LINK
Did your “Votes” store in the database. You could add a onclick event on server-side, then modify the data in the database. Use SqlCommand or any other methods.
The link for your reference.
And then you could use jquery ajax to call server side function, it will update the page without reloading the page.
Aug 20, 2016 01:34 PM|evilrid|LINK
Thanks for pointing me in the right direction.