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
)
<h2>@Model.Session.Title</h2>
- 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?
Regards,
Arnob Makhlaqur
Telerik