ravi kumar
Total Post:8
Points:56
Hi I am new to mvc. how to create a dynamic menu controls in mvc please help me
Total Post:8
Points:56Post:8
Points:56Thank you Rohit
© Copyright © 2010 - 2019 MindStick Software Pvt. Ltd. All Rights Reserved
Post:65
Points:455Re: menu controls in mvc
Hi,
You can dynamically create menu control in asp.net mvc by using ViewBag or ViewData properties.
For eg:
Create a action method (Index) in a controller as given below:
In an Index View use the below code: