Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I am using umbraco 7+ and i want to refresh / call partialview razor macro on button click using javascript with parameter.
Is there any way to do the same?
Awaiting your reply.
Hi Glob,
You can create ApiController or Surface controller, where you will handle request from javascript.
In the controller you need to render yor partial view an return it to js.
Maybe this will be handy for you if you want to return partial view as string:
http://stackoverflow.com/questions/15588488/asp-net-mvc-render-partial-view-to-a-string-to-return-with-json
Thanks,
Alex
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to refresh partialview macro on buttonclick?
Hello,
I am using umbraco 7+ and i want to refresh / call partialview razor macro on button click using javascript with parameter.
Is there any way to do the same?
Awaiting your reply.
Hi Glob,
You can create ApiController or Surface controller, where you will handle request from javascript.
In the controller you need to render yor partial view an return it to js.
Maybe this will be handy for you if you want to return partial view as string:
http://stackoverflow.com/questions/15588488/asp-net-mvc-render-partial-view-to-a-string-to-return-with-json
Thanks,
Alex
is working on a reply...