I new to ASP.NET MVC so this question maybe simple for you but please give me more detail 🙂
In my app there is a Menu, all of this Menu Item store in Database, the Menu showing every pages. I think what I need is Partial but I not sure how!
BTW I can always use ajax, so which way is better?
Thanks for yout time!
You may not need this to be a partial view, you can generate it in run time using regular .net code if you have a proper helper function. Anyways, for your question you can do these in a couple of ways.
Create a partial view and load it using the partial tag
or you can write a Html helper function
and render it using the html renderer
For ajax, you can also write some function which does the same work of GetMenu and call it using an Ajax get.
I would go for the second option.