Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • pat 124 posts 346 karma points
    Feb 10, 2017 @ 15:15
    pat
    0

    macro render partial view but not run through Index method

    Hi all, I have created a visual studio solution install umbracocms.core nugget. created model , surface controller and view . Controller Index method get data from third party service and create list of objects (type model i have created )

    build the project add dll in umbraco web site bin folder , view in partials (myCodeProject folder) then call macro in RTE.

    macro include code to renderPartial my partial view loaded in web page , but I have noticed which not run Index() method

    what gone wrong here ?

  • pat 124 posts 346 karma points
    Feb 10, 2017 @ 17:36
    pat
    0

    hi guys any one to help me out to sort this problem please..... i tried every single way i could get partial view macro to render my custom view with controller code inherits from sufacecontroller

    my code works fine If i call view using template and add Html.Action("actionname" , "controllername") and added the view under /Views/Partials/ section on umbraco.

    but when I tried to call it via macro so I dont need to create too many templates on back end this does not work.....

    If I call view using RenderPartial from my macro it render view but not execute action so i get blank page.

Please Sign in or register to post replies

Write your reply to:

Draft