MVC widget with multiple actions

Posted by Community Admin on 04-Aug-2018 19:56

MVC widget with multiple actions

All Replies

Posted by Community Admin on 24-Aug-2013 00:00

Hello, I hope somebody can help me.

I am trying to create an MVC widget in SiteFinity that has multiple actions/views and some async JSON requests.

I've followed the "MVC Widgets with Multiple Views" tutorial and can't seem to reproduce the same behaviour. My "Index" action works fine, but when I use an Url.Action() or Html.ActionLink() method in the view to build an URL, I get a 404 not found error.

My template is using MVC Hybrid mode.

Thanks in advance for any help.

Chris

Posted by Community Admin on 26-Aug-2013 00:00

hi Chris,

This KB would fix the issue.

Posted by Community Admin on 26-Aug-2013 00:00

Thank you for your reply. Can you post the link?

Thanks,

Chris

Posted by Community Admin on 26-Aug-2013 00:00

I found it, thank you. Problem fixed :)

Article is here: www.sitefinity.com/.../mvc-routing-fails-for-mvc-widgets-in-sitefinity-6.1

Please note: This problem occurs also with HTTP GET requests.

Thank you.

Chris

Posted by Community Admin on 27-Aug-2013 00:00

Hi Chris,

I'm so sorry mate, i thought i had paste the link. 

Thanks,

Yitro

This thread is closed