Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

Rendering surface controller action in template

$
0
0

Hi - looking at creating surface controllers as outlined at Shannon's blog post.  Creating it and deploying as a plug-in seems fine but can't see how to render it direct in a template - from the post, one option for using surface controller actions is to "directly render a child action declared on your Surface Controller by using @Html.Action or @Html.RenderAction".

Probably not surprisingly simply @Html.Action("MyAction","MyController") doesn't work - and presumably couldn't as would need to ensure the controller name didn't clash with that selected by other plug-in developers.

Could anyone advise how to render the action whilst indentifying it as coming from the surface controller in a particular plug-in?

Thanks

Andy


Viewing all articles
Browse latest Browse all 72689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>