I am having an issue here trying to add a new record while using multiple models. For instance this is my Model
public class homepage
{
public profile profile { get; set; }
public IEnumerable<Article> article { get; set; }
public IEnumerable<friend> friend { get; set; }
public feed feeder { get; set; }
}
Homepage as you can see holds multiple models and on my View Page I am trying to add a new row to the feed feeder table. When i click submit a new row is added but all the information is blank, so somehow it is not binding this is my view
@model john.Models.homepage
@using (Ajax.BeginForm("feedUpdate", "Account", new AjaxOptions
{
HttpMethod = "post",
InsertionMode = InsertionMode.InsertAfter,
UpdateTargetId = "myfeeds"
}))
{
<div id="feedcomment">
// The value in this textbox is not carrying over
@Html.TextBoxFor( ...
Go to the complete details ...