How can I have a view render a partial (user control) from a different folder?
With preview 3 I used to call RenderUserControl with the complete path, but whith upgrading to preview 5 this is not possible anymore.
Instead we got the RenderPartial method, but it's not offering me the functionality I'm looking for.
C# – Render partial from different folder (not shared)
asp.net-mvccrenderpartial
Related Topic
- Asp.net-mvc – How to render an ASP.NET MVC view as a string
- C# – How to get a TextBox to only accept numeric input in WPF
- Javascript – Render Partial View Using jQuery in ASP.NET MVC
- R – Asp.Net Mvc – Render partial view – Manage errors
- C# – If a folder does not exist, create it
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
Best Answer
Just include the path to the view, with the file extension.
Razor:
ASP.NET engine:
If that isn't your issue, could you please include your code that used to work with the RenderUserControl?