© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago
phyregold

Posting a list to a partial view in MVC

I have a really simple view that I am trying to pass a list to, when I check the list on the Controller side, the object is null
@model IARETradeBLL.Model.PhyreResearchPageModel
@{
    ViewBag.Title = "NewResearch";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<p>@Model.PhyreResearchStock.Ticker</p>
@Html.Action("_OptionResearch", "Research", Model.PhyreOptionInformations);
<h2>NewResearch</h2>
@model IARETradeBLL.Model.PhyreResearchPageModel
@{
    ViewBag.Title = "NewResearch";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<p>@Model.PhyreResearchStock.Ticker</p>
@Html.Action("_OptionResearch", "Research", Model.PhyreOptionInformations);
<h2>NewResearch</h2>


   public PartialViewResult _OptionResearch(List<IARETradeBLL.Model.PhyreResearchOptionInformation> phyreResearchOptionInformation)
        {
            return PartialView(phyreResearchOptionInformation);
        }
   public PartialViewResult _OptionResearch(List<IARETradeBLL.Model.PhyreResearchOptionInformation> phyreResearchOptionInformation)
        {
            return PartialView(phyreResearchOptionInformation);
        }
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ MVC Tuple to View problem
C#CC# / help
3y ago
can you call a function in a partial_view?
C#CC# / help
11mo ago