What is wrong with this Action syntax? - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

What is wrong with this Action syntax?

  • What is wrong with this Action syntax?
  • Trying to call my PageTitle MVC widget, and pass it's Title property in the value in the model.


    @model SitefinityWebApp.Mvc.Models.SessionsAcademicDetailModel

    @Html.Action("Index", "PageTitle", new
        Title = Model.Session.Title



    - Debugging shows I hit this widget first, populate Model.Session

    - Shows PageTitle controller gets triggered, but the value of Title is "null"


  • Hello Steve,

    To elaborate this issue more information is needed like the codes of the Controller and the models and if there is widget designer then also the codes of the widget designers.  If the Session class is in the different model than the SessionsAcademicDetailModel then was that (Session) initialized with the new constructor? How the Model.Session.Title got its value?

    Arnob Makhlaqur
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items