ComponentController and ActionResult

Last post 06-12-2008 1:54 PM by blaketaylor. 6 replies.

Sort Posts:

  • ComponentController and ActionResult

    04-18-2008, 12:58 AM
    • Member
      158 point Member
    • [C.I.] Reman
    • Member since 05-22-2007, 6:52 AM
    • Germany, Dresden
    • Posts 44

    The ComponentController can´t return the ActionResult - it´s still "void". Will this issue be solve in the next release or is the ComponentController "obsolent"?


  • Re: ComponentController and ActionResult

    04-18-2008, 2:51 AM
    • Contributor
      5,629 point Contributor
    • Haacked
    • Member since 09-17-2003, 2:43 PM
    • Posts 385
    • AspNetTeam

    What is the ComponentController? I'm assuming that's something in MvcContrib. If so, you should post that question to their forums.

    Phil Haack (http://haacked.com/)
    Senior Program Manager, Microsoft

    What wouldn’t you do for a Klondike bar?
  • Re: ComponentController and ActionResult

    04-18-2008, 3:09 AM
    • Member
      158 point Member
    • [C.I.] Reman
    • Member since 05-22-2007, 6:52 AM
    • Germany, Dresden
    • Posts 44

    No - the ComponentController is from your team:

    http://weblogs.asp.net/mikebosch/archive/2008/03/10/using-the-componentcontroller-in-asp-net-mvc.aspx

    I use this special controller to display dynamic data on an masterpage:

    http://code-inside.de/blog-in/2008/04/15/aspnet-mvc-display-dynamic-data-on-master-pages/

     

  • Re: ComponentController and ActionResult

    04-18-2008, 3:42 AM
    • Contributor
      5,629 point Contributor
    • Haacked
    • Member since 09-17-2003, 2:43 PM
    • Posts 385
    • AspNetTeam

    Wow, indeed you're right. I think this may be an experimental class someone should not have left in there. I'll look into it.

    Phil Haack (http://haacked.com/)
    Senior Program Manager, Microsoft

    What wouldn’t you do for a Klondike bar?
  • Re: ComponentController and ActionResult

    04-18-2008, 3:48 AM
    • Contributor
      5,514 point Contributor
    • Eilon
    • Member since 06-26-2002, 6:14 PM
    • Redmond, WA
    • Posts 945
    • AspNetTeam

    Indeed, ComponentController is used by some of the rendering helpers to render sub-components. We didn't update that class yet in part since we're considering some brand new designs for implementing sub-controllers and sub-components. If you need that class you might want to consider just using Preview 2 until we've hashed out all the details.

    Thanks,

    Eilon

    Blog: http://weblogs.asp.net/LeftSlipper/
  • Re: ComponentController and ActionResult

    04-18-2008, 4:08 AM
    • Member
      158 point Member
    • [C.I.] Reman
    • Member since 05-22-2007, 6:52 AM
    • Germany, Dresden
    • Posts 44

     Ah - thanks for the info.

    It still works (for now) - I just wonder why this controller don´t return an ActionResult.

  • Re: ComponentController and ActionResult

    06-12-2008, 1:54 PM
    • Member
      2 point Member
    • blaketaylor
    • Member since 07-03-2007, 4:35 PM
    • New York
    • Posts 1

    I hope you guys decide to keep and enhance this feature.

    Perhaps the concept of "component controllers" can be replaced with normal controllers the render an alternative view based on a "request context". This would open the doors for the Html.RenderComponet method to take a bool, that turns it into an ajax request from the rendered output on the clientside.

Page 1 of 1 (7 items)