+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / MVC widget with multiple actions

MVC widget with multiple actions

5 posts, 0 answered
  1. Chris
    Chris avatar
    11 posts
    Registered:
    05 Apr 2013
    24 Aug 2013
    Link to this post
    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
  2. Yitro
    Yitro avatar
    7 posts
    Registered:
    04 May 2013
    26 Aug 2013 in reply to Chris
    Link to this post
    hi Chris,

    This KB would fix the issue.
  3. Chris
    Chris avatar
    11 posts
    Registered:
    05 Apr 2013
    26 Aug 2013 in reply to Yitro
    Link to this post
    Thank you for your reply. Can you post the link?

    Thanks,

    Chris
  4. Chris
    Chris avatar
    11 posts
    Registered:
    05 Apr 2013
    26 Aug 2013
    Link to this post
    I found it, thank you. Problem fixed :)

    Article is here: http://www.sitefinity.com/developer-network/knowledge-base/mvc-routing-fails-for-mvc-widgets-in-sitefinity-6.1

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

    Thank you.

    Chris
  5. Yitro
    Yitro avatar
    7 posts
    Registered:
    04 May 2013
    27 Aug 2013 in reply to Chris
    Link to this post
    Hi Chris,

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

    Thanks,

    Yitro
5 posts, 0 answered