Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
725
WebDataMenu: navigation to Controller
posted

Hello,

 

I'm novice in MVC but I've learned so far to use HTML.ActionLink for instance in order to call a certain view/controller .

How do I use the WebDataMenu within MVC in order to navigate to certain views/controllers? I'm a bit hanging if I see the property NavigateURL within WebDataMenu control...

 

Thanks,

Stephan

Parents
No Data
Reply
  • 12679
    Verified Answer
    posted

    Hello Stephan,

    You should be able to use the control like this :

     <ig:WebDataMenu ID="WebDataMenu1" runat="server">      
            <Items>
                <ig:DataMenuItem NavigateUrl="/Controller/action" />
            </Items>
      </ig:WebDataMenu>

    Please keep in mind that this is WebForms control and it is not MVC control which means if you use its postbacks events you will break the pattern.

    Hope this helps.

Children
No Data