This is a migrated thread and some comments may be shown as answers.

[Solved] Binding with Razor

0 Answers 90 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Philip
Top achievements
Rank 1
Philip asked on 14 Dec 2011, 05:35 PM
Please could we have an example of the NON hierarchical binding example in Razor as the webforms version throws error when using Razor syntax.- doesn't like the first pram in BindTo.
I am building a menu bar where each item is using separate query - Brands, Categories and  items from aggregate calculations using a template..
It looks like several separate single menus is a better way to go than a complex ViewModel and hierarchical menu.
Also, how to inject model values into a Menu Template, including
Ajax.ActionLink 
There don't appear to be any examples of this and I must say the facilities for binding with the Menu somewhat of the pace.

This is being used in _layout so ViewBag / ViewData only way to access Models in View.
Unlesss there is a better way to do this, of course.

Thanks

Phil,Allen
Tags
Menu
Asked by
Philip
Top achievements
Rank 1
Share this question
or