Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Getting Content from a specific ActionResult based on a string?
- <footer>
- @{
- ContentArea r = new ContentArea("Footer");
- }
- @r.print()
- </footer>
- /Controllers/Modules/Gallery/
- /Models/Modules/Gallery/
- /View/Modules/Gallery/
- ID Module(varchar)
- 1 Gallery
- 2 Newsletter
- class ContentArea {
- .......
- Public String Print() {
- string areaContent = "";
- foreach row in my table {
- areaContent += //And here it should load the output of a controller actionresult
- //Based on the Module string from my database
- }
- }
- }
Add Comment
Please, Sign In to add comment