Thank you so much. Will try what you sad and see if I get it to
work. :)
On Sep 4, 3:18 pm, Sean Epping <
epp...@gmail.com> wrote:
> I have not used IQueryable, but I know IEnumerable or IList will work. You
> just add a viewdata tag to the top of the view as such:
>
> <viewdata model='IList[[MenuItem]]' />
>
> you can then access the model property as in webforms view engine. There is
> much more documentation on it at the spark website.
>
> Hope this helps.
>
> On Sat, Sep 4, 2010 at 3:48 AM, xteron <
thronda...@gmail.com> wrote:
> > Hello,
>
> > I have written this in the mode/menu.cs file:
>
> > IQueryable<MenuItem> ViewMenu()
> > {
> > return from ost in db.MenuItems
> > orderby ost.SortID
> > select ost;
> > }
>
> > I want to use this in the application.spark file to view the menu on
> > all pages? What is the best way to do that?
>
> > -xteron
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Spark View Engine Dev" group.
> > To post to this group, send email to
spar...@googlegroups.com.
> > To unsubscribe from this group, send email to