Happy New Year, everybody!
In the last blog entry, we showed how to replace the file menu with an MS Word-style backstage menu. This project shows how to load documents from a partial view in the backstage menu.
The partial backstage view Open.cshtml uses a very simple model to describe a document:
In the partial view, a list item is created for each file of the given model:
The controller ActionResult GetView iterates through all files of a given directory in order to create the view model that is used in the above partial view:
Download the sample from GitHub and test it on your own.
Download and Fork This Sample on GitHub
We proudly host our sample code on GitHub.com/TextControl.
Please fork and contribute.
Requirements for This Sample
- Visual Studio 2012 or better
- TX Text Control .NET Server for ASP.NET (trial sufficient)